mirror of https://github.com/jumpserver/jumpserver
Merge pull request #12124 from jumpserver/pr@dev@perf_device_icon
perf: 修改 tree 硬件设备的 iconpull/12117/head^2
commit
3e7b4682e4
|
@ -63,6 +63,8 @@ class SerializeToTreeNodeMixin:
|
||||||
return AllTypes.get_types_values(exclude_custom=True)
|
return AllTypes.get_types_values(exclude_custom=True)
|
||||||
|
|
||||||
def get_icon(self, asset):
|
def get_icon(self, asset):
|
||||||
|
if asset.category == 'device':
|
||||||
|
return 'switch'
|
||||||
if asset.type in self.support_types:
|
if asset.type in self.support_types:
|
||||||
return asset.type
|
return asset.type
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue