diff --git a/src/views/perms/AssetPermission/components/AccountFormatter.vue b/src/views/perms/AssetPermission/components/AccountFormatter.vue index 81f225979..2447896c1 100644 --- a/src/views/perms/AssetPermission/components/AccountFormatter.vue +++ b/src/views/perms/AssetPermission/components/AccountFormatter.vue @@ -36,6 +36,7 @@ :title="$tc('accounts.AccountTemplate')" :visible.sync="showAccountTemplateDialog" @confirm="handleAccountTemplateConfirm" + @cancel="handleAccountTemplateCancel" > @@ -179,6 +180,9 @@ export default { this.choicesSelected = choicesSelected this.specAccountsInput = specAccountsInput }, + handleAccountTemplateCancel() { + this.showAccountTemplateDialog = false + }, handleAccountTemplateConfirm() { this.specAccountsTemplate = this.$refs.templateTable.selectedRows const added = this.specAccountsTemplate.map(i => i.username)