Merge pull request #2738 from jumpserver/pr@dev@automation_is_active

perf: automation is active
This commit is contained in:
feng626 2023-02-22 12:47:39 +08:00 committed by GitHub
commit d6f0bcdb16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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() {