diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b6a3e732..1aca9a2e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,7 @@ NetBox now supports modeling physical cables for console, power, and interface c * [#2572](https://github.com/digitalocean/netbox/issues/2572) - Add button to disconnect cable from circuit termination * [#2573](https://github.com/digitalocean/netbox/issues/2573) - Fix bulk console/power/interface disconnections * [#2574](https://github.com/digitalocean/netbox/issues/2574) - Remove duplicate interface links from topology maps +* [#2579](https://github.com/digitalocean/netbox/issues/2579) - Add missing cable disconnect buttons for front/rear ports ## API Changes diff --git a/netbox/templates/dcim/inc/consoleport.html b/netbox/templates/dcim/inc/consoleport.html index 889472a88..62cffcbcf 100644 --- a/netbox/templates/dcim/inc/consoleport.html +++ b/netbox/templates/dcim/inc/consoleport.html @@ -31,7 +31,7 @@ {# Actions #} {% if perms.dcim.change_consoleport %} - {% if cp.connected_endpoint %} + {% if cp.cable %} {% if cp.connection_status %} diff --git a/netbox/templates/dcim/inc/frontport.html b/netbox/templates/dcim/inc/frontport.html index 47e539e6e..0120cecbb 100644 --- a/netbox/templates/dcim/inc/frontport.html +++ b/netbox/templates/dcim/inc/frontport.html @@ -30,7 +30,11 @@ {# Actions #} - {% if perms.dcim.add_cable %} + {% if frontport.cable and perms.dcim.delete_cable %} + + + + {% elif not frontport.cable and perms.dcim.add_cable %} diff --git a/netbox/templates/dcim/inc/powerport.html b/netbox/templates/dcim/inc/powerport.html index 8640ff0d1..32bd9e20d 100644 --- a/netbox/templates/dcim/inc/powerport.html +++ b/netbox/templates/dcim/inc/powerport.html @@ -31,7 +31,7 @@ {# Actions #} {% if perms.dcim.change_powerport %} - {% if pp.connected_endpoint %} + {% if pp.cable %} {% if pp.connection_status %} diff --git a/netbox/templates/dcim/inc/rearport.html b/netbox/templates/dcim/inc/rearport.html index 41541258e..037a541c3 100644 --- a/netbox/templates/dcim/inc/rearport.html +++ b/netbox/templates/dcim/inc/rearport.html @@ -29,7 +29,11 @@ {# Actions #} - {% if perms.dcim.add_cable %} + {% if rearport.cable and perms.dcim.delete_cable %} + + + + {% elif not rearport.cable and perms.dcim.add_cable %}