mirror of https://github.com/jumpserver/jumpserver
perf: 修改 k8s icon
parent
fc595bc4e4
commit
ceee2e1633
|
@ -105,7 +105,7 @@ class KubernetesTree:
|
|||
i = str(self.asset.id)
|
||||
name = str(self.asset)
|
||||
node = self.create_tree_node(
|
||||
i, i, name, 'asset', is_open=True,
|
||||
i, i, name, 'asset', icon='k8s', is_open=True,
|
||||
)
|
||||
return node
|
||||
|
||||
|
|
|
@ -228,9 +228,8 @@ class UserGrantedK8sAsTreeApi(SelfOrPKUserMixin, ListAPIView):
|
|||
util = PermAccountUtil()
|
||||
accounts = util.get_permed_accounts_for_user(self.user, token.asset)
|
||||
account_name = token.account
|
||||
if account_name in [
|
||||
AliasAccount.INPUT, AliasAccount.USER
|
||||
]:
|
||||
|
||||
if account_name in [AliasAccount.INPUT, AliasAccount.USER]:
|
||||
return token.input_secret
|
||||
else:
|
||||
accounts = filter(lambda x: x.name == account_name, accounts)
|
||||
|
|
Loading…
Reference in New Issue