Push to Error view when ProtectDB option fail

This commit is contained in:
Bubka
2020-11-06 17:49:28 +01:00
parent d1d4734031
commit 289a208847
3 changed files with 16 additions and 17 deletions

View File

@ -80,7 +80,7 @@
handleSubmit(e) {
e.preventDefault()
this.form.post('/api/settings/options', {returnError: true})
this.form.post('/api/settings/options', {returnError: false})
.then(response => {
this.$notify({ type: 'is-success', text: response.data.message })
@ -91,10 +91,6 @@
else {
this.$root.appSettings = response.data.settings
}
})
.catch(error => {
this.$notify({ type: 'is-danger', text: error.response.data.message })
});
},