diff --git a/src/components/AccountCreateUpdateForm/index.vue b/src/components/AccountCreateUpdateForm/index.vue index 9c316f29f..3bd0ad13b 100644 --- a/src/components/AccountCreateUpdateForm/index.vue +++ b/src/components/AccountCreateUpdateForm/index.vue @@ -60,7 +60,7 @@ export default { ] }, url: '/api/v1/accounts/accounts/', - form: Object.assign({ 'on_invalid': 'skip' }, this.account || {}), + form: Object.assign({ 'on_invalid': 'error' }, this.account || {}), encryptedFields: ['secret'], fields: [ [this.$t('assets.Asset'), ['assets']], diff --git a/src/components/AccountListTable/AccountCreateUpdate.vue b/src/components/AccountListTable/AccountCreateUpdate.vue index b255ae040..49888f718 100644 --- a/src/components/AccountListTable/AccountCreateUpdate.vue +++ b/src/components/AccountListTable/AccountCreateUpdate.vue @@ -97,7 +97,7 @@ export default { } } this.$axios.post(url, data, { - disableFlashErrorMsg: true + disableFlashErrorMsg: iVisible }).then((data) => { this.handleResult(data, null) this.iVisible = iVisible @@ -105,6 +105,7 @@ export default { this.$emit('add', true) } }).catch(error => { + this.iVisible = iVisible this.handleResult(null, error) }) },