From e560455ef8be3aef2c1ddd7568ff3e55d3fd6140 Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Wed, 22 Feb 2023 12:46:53 +0800 Subject: [PATCH] perf: automation is active --- .../AccountChangeSecretDetail/AccountChangeSecretInfo.vue | 2 +- .../accounts/AccountPush/AccountPushDetail/AccountPushInfo.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/accounts/AccountChangeSecret/AccountChangeSecretDetail/AccountChangeSecretInfo.vue b/src/views/accounts/AccountChangeSecret/AccountChangeSecretDetail/AccountChangeSecretInfo.vue index d9f0ec47d..6dd36cfe7 100644 --- a/src/views/accounts/AccountChangeSecret/AccountChangeSecretDetail/AccountChangeSecretInfo.vue +++ b/src/views/accounts/AccountChangeSecret/AccountChangeSecretDetail/AccountChangeSecretInfo.vue @@ -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() { diff --git a/src/views/accounts/AccountPush/AccountPushDetail/AccountPushInfo.vue b/src/views/accounts/AccountPush/AccountPushDetail/AccountPushInfo.vue index 4182fc4f4..683a3bee9 100644 --- a/src/views/accounts/AccountPush/AccountPushDetail/AccountPushInfo.vue +++ b/src/views/accounts/AccountPush/AccountPushDetail/AccountPushInfo.vue @@ -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() {