Przeglądaj źródła

feat(circuits): Use ColoredLabelColumn for type column

Refactors the 'type' column to use ColoredLabelColumn for improved
visual distinction, aligning it with the rack roles display.
Removes the now redundant 'linkify' attribute from the column
definition.
Martin Hauser 9 miesięcy temu
rodzic
commit
88dd7a16f8
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      netbox/circuits/tables/circuits.py

+ 1 - 2
netbox/circuits/tables/circuits.py

@@ -61,9 +61,8 @@ class CircuitTable(TenancyColumnsMixin, ContactsColumnMixin, NetBoxTable):
         linkify=True,
         linkify=True,
         verbose_name=_('Account')
         verbose_name=_('Account')
     )
     )
-    type = tables.Column(
+    type = columns.ColoredLabelColumn(
         verbose_name=_('Type'),
         verbose_name=_('Type'),
-        linkify=True
     )
     )
     status = columns.ChoiceFieldColumn()
     status = columns.ChoiceFieldColumn()
     termination_a = columns.TemplateColumn(
     termination_a = columns.TemplateColumn(