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: { attrs: {
type: 'primary', type: 'primary',
label: this.$t('accounts.AccountChangeSecret.Execute'), label: this.$t('accounts.AccountChangeSecret.Execute'),
disabled: !this.$hasPerm('accounts.add_changesecretexection') disabled: !this.$hasPerm('accounts.add_changesecretexection') || !this.object.is_active
}, },
callbacks: { callbacks: {
click: function() { click: function() {

View File

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