perf: automation is active

This commit is contained in:
feng
2023-02-22 12:46:53 +08:00
parent fe5111a105
commit e560455ef8
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ export default {
attrs: {
type: 'primary',
label: this.$t('accounts.AccountChangeSecret.Execute'),
disabled: !this.$hasPerm('accounts.add_changesecretexection')
disabled: !this.$hasPerm('accounts.add_changesecretexection') || !this.object.is_active
},
callbacks: {
click: function() {

View File

@@ -34,7 +34,7 @@ export default {
attrs: {
type: 'primary',
label: this.$t('accounts.AccountChangeSecret.Execute'),
disabled: !this.$hasPerm('accounts.add_changesecretexection')
disabled: !this.$hasPerm('accounts.add_changesecretexection') || !this.object.is_active
},
callbacks: {
click: function() {