1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #5738: Fix redirect to device components view after disconnecting a cable

This commit is contained in:
Jeremy Stretch
2021-02-04 13:19:42 -05:00
parent e3e928f1c4
commit 1430c0a6e6
3 changed files with 36 additions and 5 deletions

View File

@@ -9,8 +9,3 @@
</a>
{% endif %}
{% endif %}
{% if perms.dcim.delete_cable %}
<a href="{% url 'dcim:cable_delete' pk=cable.pk %}?return_url={{ object.get_absolute_url }}" title="Remove cable" class="btn btn-danger btn-xs">
<i class="mdi mdi-ethernet-cable-off" aria-hidden="true"></i>
</a>
{% endif %}