From 302bacf8f9a7b4c3f33e3a7ce677767061dde554 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 19 Nov 2024 12:34:06 +0000 Subject: [PATCH] Add icon --- inventree_wireviz/wireviz.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inventree_wireviz/wireviz.py b/inventree_wireviz/wireviz.py index dcaba09..d953dd0 100644 --- a/inventree_wireviz/wireviz.py +++ b/inventree_wireviz/wireviz.py @@ -246,7 +246,7 @@ def get_ui_panels(self, request, context=None, **kwargs): except Build.DoesNotExist: part = None - if part and part.get_metadata('wireviz'): + if part: # and part.get_metadata('wireviz'): ctx = self.panel_context_from_instance(part) @@ -255,6 +255,8 @@ def get_ui_panels(self, request, context=None, **kwargs): panels.append({ 'key': 'wireviz', 'title': 'Harness Diagram', + 'description': 'View wire harness diagram', + 'icon': 'ti:topology-star:outline', 'context': ctx, 'source': self.plugin_static_file('WirevizPanel.js:renderWirevizPanel'), })