diff --git a/src/components/AssetSelect/index.vue b/src/components/AssetSelect/index.vue index 3bcc3f015..3b890f96f 100644 --- a/src/components/AssetSelect/index.vue +++ b/src/components/AssetSelect/index.vue @@ -102,15 +102,8 @@ export default { tableConfig: { url: this.baseUrl, hasTree: true, - hasSelection: false, canSelect: this.canSelect, columns: [ - { - type: 'selection', - selectable(row) { - return row.automation_enabled_info.change_secret_enabled - } - }, { prop: 'name', label: this.$t('assets.Name'), diff --git a/src/views/accounts/ChangeSecreAtutomation/fields.js b/src/views/accounts/ChangeSecreAtutomation/fields.js index 76d4a2ccc..31e10dce1 100644 --- a/src/views/accounts/ChangeSecreAtutomation/fields.js +++ b/src/views/accounts/ChangeSecreAtutomation/fields.js @@ -52,6 +52,11 @@ export const getFields = () => { rules: [ { required: false } ], + el: { + canSelect: (row) => { + return row.automation_enabled_info.change_secret_enabled + } + }, label: i18n.t('xpack.Asset') }, passphrase: {