Adds PowerOutlet.status to detail view

Also fixes color display in list table and detail template
This commit is contained in:
Jason Novinger
2025-03-03 12:22:34 -06:00
parent 2ae84ce9fb
commit 913405a3ae
3 changed files with 10 additions and 0 deletions

View File

@@ -498,6 +498,9 @@ class PowerOutlet(ModularComponentModel, CabledObjectModel, PathEndpoint, Tracki
_("Parent power port ({power_port}) must belong to the same device").format(power_port=self.power_port)
)
def get_status_color(self):
return PowerOutletStatusChoices.colors.get(self.status)
#
# Interfaces