Skip to content

Commit

Permalink
Merge pull request #38 from kingscode/KCI-163
Browse files Browse the repository at this point in the history
KCI-163 > Always immediately display servor-errors when they appear
  • Loading branch information
martn001 authored May 6, 2021
2 parents c6d7dc0 + 9f9cc63 commit 395f444
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export default {
} else {
this.errorMessage = this.findError('email');
}
this.$refs.form.validate();
})
.finally(() => {
this.isLoading = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export default {
})
.catch(() => {
this.alertMessage = this.$t('errors.422');
this.$refs.form.validate();
})
.finally(() => {
this.isLoading = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export default {
.catch(() => {
this.alertType = 'error';
this.alertMessage = 'De ingevulde gegevens kloppen niet.';
this.$refs.form.validate();
})
.finally(() => {
this.isLoading = false;
Expand Down
2 changes: 1 addition & 1 deletion generator/templates/Crud/src/components/Resource.vue
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export default {
this.updateRequest(this.updateForm.values)
.then(() => resolve())
.catch((error) => {
this.$refs.createForm.validate();
this.$refs.updateForm.validate();
reject(error);
});
} else {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-cli-plugin-kingscode-scaffold",
"version": "0.11.0",
"version": "0.11.1",
"description": "",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 395f444

Please sign in to comment.