diff --git a/src/components/ListTable/formatters/ActionsFormatter.vue b/src/components/ListTable/formatters/ActionsFormatter.vue index 31fceb513..d49903314 100644 --- a/src/components/ListTable/formatters/ActionsFormatter.vue +++ b/src/components/ListTable/formatters/ActionsFormatter.vue @@ -84,7 +84,7 @@ export default { canUpdate: true, // can set function(row, value) hasDelete: true, // can set function(row, value) canDelete: true, - hasClone: true, + hasClone: false, canClone: true, updateRoute: this.$route.name.replace('List', 'Update'), cloneRoute: this.$route.name.replace('List', 'Create'), diff --git a/src/components/ListTable/index.vue b/src/components/ListTable/index.vue index c1ef1de95..4f07e6d59 100644 --- a/src/components/ListTable/index.vue +++ b/src/components/ListTable/index.vue @@ -46,10 +46,11 @@ export default { }, iTableConfig() { const config = deepmerge(this.tableConfig, { extraQuery: this.extraQuery }) - const hasClone = _.get(config, 'columnsMeta.actions.formatterArgs.hasClone') - if (!this.headerActions.hasCreate && hasClone == null) { - _.set(config, 'columnsMeta.actions.formatterArgs.hasClone', false) + let hasClone = _.get(config, 'columnsMeta.actions.formatterArgs.hasClone') + if (this.headerActions.hasCreate && hasClone == null) { + hasClone = true } + _.set(config, 'columnsMeta.actions.formatterArgs.hasClone', hasClone) this.$log.debug('ListTable: iTableConfig change', config) return config } diff --git a/src/i18n/langs/cn.json b/src/i18n/langs/cn.json index 258766a3f..15ed7c8ce 100644 --- a/src/i18n/langs/cn.json +++ b/src/i18n/langs/cn.json @@ -903,6 +903,8 @@ "grantedK8Ss": "授权的Kubernetes", "grantedDatabases": "授权的数据库", "grantedRemoteApps": "授权的远程应用", + "grantedApplications": "授权的应用", + "ApplicationPermissionRules": "应用授权规则", "remoteAppPermissionRules": "远程应用授权规则" }, "dateLastLogin": "最后登录日期", diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index b85103683..508615069 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -787,6 +787,7 @@ "Asset": "Asset", "SystemUser": "System user", "Applicant": "Applicant", + "RequestAssetPerm": "Request asset perm", "Pending": "Open", "Approved": "Approved", "Rejected": "Rejected", @@ -891,6 +892,8 @@ "grantedK8Ss":"Granted K8Ss", "grantedDatabases": "Granted databases", "grantedRemoteApps": "Granted remote apps", + "grantedApplications": "Granted applications", + "ApplicationPermissionRules": "Application permission rules", "remoteAppPermissionRules": "Remote app permission rules" }, "UpdatePassword": "", diff --git a/src/layout/components/Footer/index.vue b/src/layout/components/Footer/index.vue index 890aaf7e1..0f4cd2399 100644 --- a/src/layout/components/Footer/index.vue +++ b/src/layout/components/Footer/index.vue @@ -1,7 +1,7 @@