fix: detect power cables by termination type and move toggle into topology card
Power-cable detection previously relied on cable.type, which is usually unset for power patch cables (e.g. PDU-to-PDU), so they never got the distinct color. Power cables are now also detected by termination component type (PowerPort/PowerOutlet/PowerFeed). Wireless/power display is now toggled client-side via checkboxes in the Kabeltopologie card header (before the SVG/PNG/draw.io export buttons) instead of a server round-trip through the top filter form, so toggling is instant and affects exports too. Bump plugin version to 4.5.2. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -379,12 +379,6 @@ class RackElevationFilterForm(forms.Form):
|
||||
include_empty = forms.BooleanField(
|
||||
required=False, initial=False, label=_("Include empty racks")
|
||||
)
|
||||
show_wireless = forms.BooleanField(
|
||||
required=False, initial=True, label=_("Show wireless links")
|
||||
)
|
||||
show_power = forms.BooleanField(
|
||||
required=False, initial=True, label=_("Show power cables")
|
||||
)
|
||||
|
||||
|
||||
class CoordinateGroupsForm(NetBoxModelForm):
|
||||
|
||||
Reference in New Issue
Block a user