Skip to content

Commit

Permalink
Add icon
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Nov 19, 2024
1 parent 8d1b2fd commit 302bacf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inventree_wireviz/wireviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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'),
})
Expand Down

0 comments on commit 302bacf

Please sign in to comment.