diff --git a/src/components/Table/AutoDataTable/index.vue b/src/components/Table/AutoDataTable/index.vue index 5cda1a284..850b672d1 100644 --- a/src/components/Table/AutoDataTable/index.vue +++ b/src/components/Table/AutoDataTable/index.vue @@ -65,7 +65,17 @@ export default { isDeactivated: false } }, - computed: {}, + computed: { + dynamicActionWidth() { + if (this.$i18n.locale === 'en') { + return '120px' + } + if (this.$i18n.locale === 'pt-br') { + return '160px' + } + return '100px' + } + }, watch: { config: { handler: _.debounce(function(iNew, iOld) { @@ -131,7 +141,7 @@ export default { prop: 'actions', label: i18n.t('Actions'), align: 'center', - width: '100px', + width: this.dynamicActionWidth, formatter: ActionsFormatter, fixed: 'right', formatterArgs: {} diff --git a/src/views/accounts/Account/AccountList.vue b/src/views/accounts/Account/AccountList.vue index b8618d4a1..a4a0de620 100644 --- a/src/views/accounts/Account/AccountList.vue +++ b/src/views/accounts/Account/AccountList.vue @@ -24,12 +24,7 @@ export default { tableConfig: { url: '/api/v1/accounts/accounts/', hasLeftActions: true, - hasImport: true, - columnsMeta: { - actions: { - width: this.$i18n.locale === 'pt-br' ? '120px' : '100px' - } - } + hasImport: true }, treeSetting: { showMenu: false, diff --git a/src/views/accounts/AccountBackup/AccountBackupDetail/AccountBackupExecution/AccountBackupExecutionList.vue b/src/views/accounts/AccountBackup/AccountBackupDetail/AccountBackupExecution/AccountBackupExecutionList.vue index 8f149c6fc..aa2206f5d 100644 --- a/src/views/accounts/AccountBackup/AccountBackupDetail/AccountBackupExecution/AccountBackupExecutionList.vue +++ b/src/views/accounts/AccountBackup/AccountBackupDetail/AccountBackupExecution/AccountBackupExecutionList.vue @@ -59,7 +59,6 @@ export default { } }, actions: { - width: (this.$i18n.locale === 'pt-br' || this.$i18n.locale === 'en') ? '160px' : '100px', formatterArgs: { hasDelete: false, hasUpdate: false, diff --git a/src/views/accounts/AccountChangeSecret/AccountChangeSecretDetail/AccountChangeSecretExecution/AccountChangeSecretExecutionList.vue b/src/views/accounts/AccountChangeSecret/AccountChangeSecretDetail/AccountChangeSecretExecution/AccountChangeSecretExecutionList.vue index db55c5638..48b3164ba 100644 --- a/src/views/accounts/AccountChangeSecret/AccountChangeSecretDetail/AccountChangeSecretExecution/AccountChangeSecretExecutionList.vue +++ b/src/views/accounts/AccountChangeSecret/AccountChangeSecretDetail/AccountChangeSecretExecution/AccountChangeSecretExecutionList.vue @@ -74,7 +74,6 @@ export default { } }, actions: { - width: (this.$i18n.locale === 'pt-br' || this.$i18n.locale === 'en') ? '160px' : '100px', formatterArgs: { hasDelete: false, hasUpdate: false, diff --git a/src/views/accounts/AccountGather/TaskDetail/TaskExecutionList.vue b/src/views/accounts/AccountGather/TaskDetail/TaskExecutionList.vue index 10eaa69e8..2fe356eca 100644 --- a/src/views/accounts/AccountGather/TaskDetail/TaskExecutionList.vue +++ b/src/views/accounts/AccountGather/TaskDetail/TaskExecutionList.vue @@ -57,7 +57,6 @@ export default { width: null }, actions: { - width: (this.$i18n.locale === 'pt-br' || this.$i18n.locale === 'en') ? '160px' : '100px', formatterArgs: { hasDelete: false, hasUpdate: false, diff --git a/src/views/accounts/AccountPush/AccountPushExecutionList.vue b/src/views/accounts/AccountPush/AccountPushExecutionList.vue index d34a833f3..38322c1d3 100644 --- a/src/views/accounts/AccountPush/AccountPushExecutionList.vue +++ b/src/views/accounts/AccountPush/AccountPushExecutionList.vue @@ -74,7 +74,6 @@ export default { } }, actions: { - width: (this.$i18n.locale === 'pt-br' || this.$i18n.locale === 'en') ? '160px' : '100px', formatterArgs: { hasDelete: false, hasUpdate: false, diff --git a/src/views/acl/UserLoginACL/UserLoginACLTable.vue b/src/views/acl/UserLoginACL/UserLoginACLTable.vue index c3dc004bd..f9392ece1 100644 --- a/src/views/acl/UserLoginACL/UserLoginACLTable.vue +++ b/src/views/acl/UserLoginACL/UserLoginACLTable.vue @@ -37,7 +37,6 @@ export default { label: this.$t('ApproverNumbers') }, actions: { - width: (this.$i18n.locale === 'pt-br' || this.$i18n.locale === 'en') ? '120px' : '100px', formatterArgs: { hasClone: false, updateRoute: ({ row }) => { diff --git a/src/views/assets/Asset/AssetDetail/PermUser.vue b/src/views/assets/Asset/AssetDetail/PermUser.vue index bfeed652e..8cb3d439d 100644 --- a/src/views/assets/Asset/AssetDetail/PermUser.vue +++ b/src/views/assets/Asset/AssetDetail/PermUser.vue @@ -103,7 +103,6 @@ export default { width: '200px' }, actions: { - width: this.$i18n.locale === 'pt-br' ? '120px' : '100px', formatterArgs: { hasUpdate: false, hasDelete: false,