[PR #13807] [CLOSED] Bugfixes for mark installed/mark planned button #14254

Closed
opened 2025-12-29 23:23:26 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/13807
Author: @pv2b
Created: 9/18/2023
Status: Closed

Base: developHead: 13712-13806-mark-planned-fixes


📝 Commits (1)

  • 10b5778 Bugfixes for mark installed/mark planned button

📊 Changes

3 files changed (+33 additions, -9 deletions)

View changed files

📝 netbox/project-static/dist/netbox.js (+1 -1)
📝 netbox/project-static/dist/netbox.js.map (+1 -1)
📝 netbox/project-static/src/buttons/connectionToggle.ts (+31 -7)

📄 Description

Fixes: #13712 and #13806.

Not super happy with the fix here, because it doesn't address the underlying problem, which is that the toggleConnection() typescript function hardcodes which CSS classes should be added/removed. Probably a more permanent fix would be to stop applying CSS classes on the table view, and instead apply attributes for cable/interface state, and then use CSS to apply colours based on interface state, but this is a quite involved process. But it does at least fix things in the here and now.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/13807 **Author:** [@pv2b](https://github.com/pv2b) **Created:** 9/18/2023 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `13712-13806-mark-planned-fixes` --- ### 📝 Commits (1) - [`10b5778`](https://github.com/netbox-community/netbox/commit/10b577809c9acd9a89dc433b3f6ef493c48aa455) Bugfixes for mark installed/mark planned button ### 📊 Changes **3 files changed** (+33 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `netbox/project-static/dist/netbox.js` (+1 -1) 📝 `netbox/project-static/dist/netbox.js.map` (+1 -1) 📝 `netbox/project-static/src/buttons/connectionToggle.ts` (+31 -7) </details> ### 📄 Description ### Fixes: #13712 and #13806. Not super happy with the fix here, because it doesn't address the underlying problem, which is that the toggleConnection() typescript function hardcodes which CSS classes should be added/removed. Probably a more permanent fix would be to stop applying CSS classes on the table view, and instead apply attributes for cable/interface state, and then use CSS to apply colours based on interface state, but this is a quite involved process. But it does at least fix things in the here and now. <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> <!-- Please include a summary of the proposed changes below. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:23:26 +01:00
adam closed this issue 2025-12-29 23:23:26 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14254