mirror of https://github.com/jumpserver/jumpserver
perf: 修改 tree 硬件设备的 icon
parent
8667943443
commit
994b42aa93
|
@ -63,6 +63,8 @@ class SerializeToTreeNodeMixin:
|
|||
return AllTypes.get_types_values(exclude_custom=True)
|
||||
|
||||
def get_icon(self, asset):
|
||||
if asset.category == 'device':
|
||||
return 'switch'
|
||||
if asset.type in self.support_types:
|
||||
return asset.type
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue