mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
Fixed: Fixed PT-BR language adaptation issue
This commit is contained in:
@@ -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: {}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -59,7 +59,6 @@ export default {
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
width: (this.$i18n.locale === 'pt-br' || this.$i18n.locale === 'en') ? '160px' : '100px',
|
||||
formatterArgs: {
|
||||
hasDelete: false,
|
||||
hasUpdate: false,
|
||||
|
||||
@@ -74,7 +74,6 @@ export default {
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
width: (this.$i18n.locale === 'pt-br' || this.$i18n.locale === 'en') ? '160px' : '100px',
|
||||
formatterArgs: {
|
||||
hasDelete: false,
|
||||
hasUpdate: false,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -74,7 +74,6 @@ export default {
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
width: (this.$i18n.locale === 'pt-br' || this.$i18n.locale === 'en') ? '160px' : '100px',
|
||||
formatterArgs: {
|
||||
hasDelete: false,
|
||||
hasUpdate: false,
|
||||
|
||||
@@ -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 }) => {
|
||||
|
||||
@@ -103,7 +103,6 @@ export default {
|
||||
width: '200px'
|
||||
},
|
||||
actions: {
|
||||
width: this.$i18n.locale === 'pt-br' ? '120px' : '100px',
|
||||
formatterArgs: {
|
||||
hasUpdate: false,
|
||||
hasDelete: false,
|
||||
|
||||
Reference in New Issue
Block a user