diff --git a/apps/assets/const/types.py b/apps/assets/const/types.py index 220d10731..6f03839d5 100644 --- a/apps/assets/const/types.py +++ b/apps/assets/const/types.py @@ -169,10 +169,10 @@ class AllTypes(ChoicesMixin): (Category.HOST, HostTypes), (Category.DEVICE, DeviceTypes), (Category.DATABASE, DatabaseTypes), - (Category.CLOUD, CloudTypes), - (Category.WEB, WebTypes), - (Category.GPT, GPTTypes), - (Category.CUSTOM, CustomTypes), + # (Category.CLOUD, CloudTypes), + # (Category.WEB, WebTypes), + # (Category.GPT, GPTTypes), + # (Category.CUSTOM, CustomTypes), ) @classmethod diff --git a/apps/locale/lina/en.json b/apps/locale/lina/en.json index cb1c2b988..9e42b8b2c 100644 --- a/apps/locale/lina/en.json +++ b/apps/locale/lina/en.json @@ -1107,7 +1107,7 @@ "OrgAdmin": "Org Admin", "OrgAuditor": "Org Auditor", "OrgName": "Org name", - "OrgRole": "Org role", + "OrgRole": "Org roles", "OrgRoleHelpText": "Organizational roles are the user's role in the current organization", "OrgRoles": "Org roles", "OrgUser": "Org User", @@ -1620,6 +1620,11 @@ "TableColSettingInfo": "Please select the list details you want to display", "Target": "Target", "TargetResources": "Target resources", + "MenuUsers": "Users", + "MenuAssets": "Assets", + "MenuAccounts": "Accounts", + "MenuPermissions": "Permissions", + "MenuMore": "More...", "Task": "Task", "TaskCenter": "Task", "TaskDetail": "Task detail", diff --git a/apps/locale/lina/zh.json b/apps/locale/lina/zh.json index ab1287ec3..2f5e88fe7 100644 --- a/apps/locale/lina/zh.json +++ b/apps/locale/lina/zh.json @@ -442,6 +442,11 @@ "Correlation": "关联", "Cpu": "CPU", "Create": "创建", + "MenuUsers": "用户管理", + "MenuAssets": "资产管理", + "MenuAccounts": "账号管理", + "MenuPermissions": "授权管理", + "MenuMore": "更多...", "CreateAccessKey": "创建访问密钥", "CreateAccountTemplate": "创建账号模版", "CreateAdhoc": "创建命令", diff --git a/apps/rbac/serializers/role.py b/apps/rbac/serializers/role.py index 84c597396..2e925c0c8 100644 --- a/apps/rbac/serializers/role.py +++ b/apps/rbac/serializers/role.py @@ -24,7 +24,7 @@ class RoleSerializer(serializers.ModelSerializer): ] extra_kwargs = { 'permissions': {'write_only': True}, - 'users_amount': {'label': _('Users amount')}, + 'users_amount': {'label': _('Users')}, 'display_name': {'label': _('Display name')} }