mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-02 07:27:01 +00:00
perf: account translate
This commit is contained in:
parent
e2d7d8edd8
commit
009770bb04
@ -53,7 +53,7 @@ export default {
|
||||
title: {
|
||||
type: String,
|
||||
default: function() {
|
||||
return this.$t('AddAccount')
|
||||
return this.$t('Add')
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -139,7 +139,7 @@ export default {
|
||||
showAddDialog: false,
|
||||
showAddTemplateDialog: false,
|
||||
createAccountResults: [],
|
||||
accountCreateUpdateTitle: this.$t('AddAccount'),
|
||||
accountCreateUpdateTitle: this.$t('Create'),
|
||||
iAsset: this.asset,
|
||||
account: {},
|
||||
secretUrl: '',
|
||||
@ -311,7 +311,7 @@ export default {
|
||||
extraActions: [
|
||||
{
|
||||
name: 'add',
|
||||
title: this.$t('Add'),
|
||||
title: this.$t('Create'),
|
||||
type: 'primary',
|
||||
can: () => {
|
||||
return vm.$hasPerm('accounts.add_account') && !this.$store.getters.currentOrgIsRoot
|
||||
@ -321,7 +321,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
vm.iAsset = this.asset
|
||||
vm.account = {}
|
||||
vm.accountCreateUpdateTitle = this.$t('AddAccount')
|
||||
vm.accountCreateUpdateTitle = this.$t('Create')
|
||||
vm.showAddDialog = true
|
||||
})
|
||||
}
|
||||
@ -338,7 +338,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
vm.iAsset = this.asset
|
||||
vm.account = {}
|
||||
vm.accountCreateUpdateTitle = this.$t('AddAccount')
|
||||
vm.accountCreateUpdateTitle = this.$t('Create')
|
||||
vm.showAddTemplateDialog = true
|
||||
})
|
||||
}
|
||||
@ -347,8 +347,8 @@ export default {
|
||||
],
|
||||
extraMoreActions: [
|
||||
{
|
||||
name: 'BulkVerify',
|
||||
title: this.$t('BulkVerify'),
|
||||
name: 'BatchTest',
|
||||
title: this.$t('BatchTest'),
|
||||
type: 'primary',
|
||||
icon: 'fa-handshake-o',
|
||||
can: ({ selectedRows }) => {
|
||||
@ -366,7 +366,7 @@ export default {
|
||||
}.bind(this)
|
||||
},
|
||||
{
|
||||
name: 'ClearSecrets',
|
||||
name: 'ClearSecret',
|
||||
title: this.$t('ClearSecret'),
|
||||
type: 'primary',
|
||||
icon: 'clean',
|
||||
|
@ -86,7 +86,7 @@ export default {
|
||||
title: {
|
||||
type: String,
|
||||
default: function() {
|
||||
return this.$tc('AccountDetail')
|
||||
return this.$tc('Detail')
|
||||
}
|
||||
},
|
||||
showPasswordRecord: {
|
||||
|
@ -137,7 +137,7 @@ export default [
|
||||
name: 'AccountPushCreate',
|
||||
hidden: true,
|
||||
meta: {
|
||||
title: i18n.t('AccountPushCreate'),
|
||||
title: i18n.t('Create'),
|
||||
permissions: ['accounts.add_pushaccountautomation']
|
||||
}
|
||||
},
|
||||
@ -147,7 +147,7 @@ export default [
|
||||
name: 'AccountPushUpdate',
|
||||
hidden: true,
|
||||
meta: {
|
||||
title: i18n.t('AccountPushUpdate'),
|
||||
title: i18n.t('Update'),
|
||||
permissions: ['accounts.change_pushaccountautomation']
|
||||
}
|
||||
},
|
||||
@ -208,7 +208,7 @@ export default [
|
||||
name: 'AccountGatherTaskCreate',
|
||||
hidden: true,
|
||||
meta: {
|
||||
title: i18n.t('AccountGatherTaskCreate'),
|
||||
title: i18n.t('Create'),
|
||||
permissions: ['accounts.add_gatheraccountsautomation']
|
||||
}
|
||||
},
|
||||
@ -228,7 +228,7 @@ export default [
|
||||
name: 'AccountGatherTaskUpdate',
|
||||
hidden: true,
|
||||
meta: {
|
||||
title: i18n.t('AccountGatherTaskUpdate'),
|
||||
title: i18n.t('Update'),
|
||||
action: 'update',
|
||||
permissions: ['accounts.change_gatheraccountsautomation'],
|
||||
activeMenu: '/accounts/account-gather'
|
||||
@ -352,7 +352,7 @@ export default [
|
||||
component: () => import('@/views/accounts/AccountBackup/AccountBackupCreateUpdate.vue'),
|
||||
name: 'AccountBackupPlanCreate',
|
||||
meta: {
|
||||
title: i18n.t('AccountBackupCreate'),
|
||||
title: i18n.t('Create'),
|
||||
action: 'create'
|
||||
},
|
||||
hidden: true
|
||||
@ -362,7 +362,7 @@ export default [
|
||||
component: () => import('@/views/accounts/AccountBackup/AccountBackupCreateUpdate.vue'),
|
||||
name: 'AccountBackupPlanUpdate',
|
||||
meta: {
|
||||
title: i18n.t('AccountBackupUpdate'),
|
||||
title: i18n.t('Update'),
|
||||
action: 'update'
|
||||
},
|
||||
hidden: true
|
||||
|
@ -46,7 +46,7 @@ const clouds = {
|
||||
name: 'AccountCreate',
|
||||
hidden: true,
|
||||
meta: {
|
||||
title: i18n.t('AccountCreate'),
|
||||
title: i18n.t('Create'),
|
||||
action: 'create',
|
||||
permissions: ['xpack.add_account']
|
||||
}
|
||||
@ -57,7 +57,7 @@ const clouds = {
|
||||
name: 'AccountUpdate',
|
||||
hidden: true,
|
||||
meta: {
|
||||
title: i18n.t('AccountUpdate'),
|
||||
title: i18n.t('Update'),
|
||||
action: 'update',
|
||||
permissions: ['xpack.change_account']
|
||||
}
|
||||
@ -68,7 +68,7 @@ const clouds = {
|
||||
name: 'AccountDetail',
|
||||
hidden: true,
|
||||
meta: {
|
||||
title: i18n.t('AccountDetail'),
|
||||
title: i18n.t('Detail'),
|
||||
permissions: ['xpack.view_account']
|
||||
}
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
:destroy-on-close="true"
|
||||
:show-cancel="false"
|
||||
:show-confirm="false"
|
||||
:title="$tc('AddAccount')"
|
||||
:title="$tc('Add')"
|
||||
:visible.sync="iVisible"
|
||||
width="800px"
|
||||
>
|
||||
|
@ -27,7 +27,7 @@ export default {
|
||||
activeMenu: 'AccountDetail',
|
||||
submenu: [
|
||||
{
|
||||
title: this.$t('AccountDetail'),
|
||||
title: this.$t('Detail'),
|
||||
name: 'AccountDetail'
|
||||
}
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user