Skip to content

Commit 395f444

Browse files
authored
Merge pull request #38 from kingscode/KCI-163
KCI-163 > Always immediately display servor-errors when they appear
2 parents c6d7dc0 + 9f9cc63 commit 395f444

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

generator/templates/Authorisation/src/components/authorisation/LoginCard.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export default {
104104
} else {
105105
this.errorMessage = this.findError('email');
106106
}
107+
this.$refs.form.validate();
107108
})
108109
.finally(() => {
109110
this.isLoading = false;

generator/templates/Authorisation/src/components/authorisation/PasswordForgottenCard.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export default {
7777
})
7878
.catch(() => {
7979
this.alertMessage = this.$t('errors.422');
80+
this.$refs.form.validate();
8081
})
8182
.finally(() => {
8283
this.isLoading = false;

generator/templates/Authorisation/src/components/authorisation/RegisterCard.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export default {
6767
.catch(() => {
6868
this.alertType = 'error';
6969
this.alertMessage = 'De ingevulde gegevens kloppen niet.';
70+
this.$refs.form.validate();
7071
})
7172
.finally(() => {
7273
this.isLoading = false;

generator/templates/Crud/src/components/Resource.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export default {
180180
this.updateRequest(this.updateForm.values)
181181
.then(() => resolve())
182182
.catch((error) => {
183-
this.$refs.createForm.validate();
183+
this.$refs.updateForm.validate();
184184
reject(error);
185185
});
186186
} else {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-cli-plugin-kingscode-scaffold",
3-
"version": "0.11.0",
3+
"version": "0.11.1",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)