@designcrowd/fe-shared-lib 1.2.6-ml-291-4 → 1.2.6-ml-291-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -36,11 +36,12 @@
|
|
|
36
36
|
{{ title }}
|
|
37
37
|
</h2>
|
|
38
38
|
<p class="tw-mb-8 tw-text-grayscale-600">{{ modalDescription }}</p>
|
|
39
|
-
<form id="forgotPassword" ref="forgotPasswordForm" method="post" @submit="validate">
|
|
39
|
+
<form id="forgotPassword" ref="forgotPasswordForm" method="post" novalidate @submit="validate">
|
|
40
40
|
<input type="hidden" name="__RequestVerificationToken" :value="antiForgeryToken" />
|
|
41
41
|
<input type="hidden" name="locale" :value="currentLocale" />
|
|
42
42
|
<label for="email" class="tw-sr-only"> {{ emailLabel }} </label>
|
|
43
43
|
<input
|
|
44
|
+
ref="emailInput"
|
|
44
45
|
v-model="aEmail"
|
|
45
46
|
name="email"
|
|
46
47
|
:class="{ 'tw-border-error-500': !!emailError }"
|
|
@@ -178,19 +179,23 @@ export default {
|
|
|
178
179
|
if (this.submitAction) {
|
|
179
180
|
this.$refs.forgotPasswordForm.action = this.submitAction;
|
|
180
181
|
}
|
|
181
|
-
if (this.aEmail) {
|
|
182
|
-
this.isLoading = true;
|
|
183
|
-
return true;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
this.isLoading = false;
|
|
187
182
|
|
|
188
183
|
this.emailError = undefined;
|
|
189
184
|
|
|
190
185
|
if (!this.aEmail) {
|
|
186
|
+
this.isLoading = false;
|
|
191
187
|
this.emailError = this.emailErrorMessage;
|
|
188
|
+
e.preventDefault();
|
|
189
|
+
return false;
|
|
192
190
|
}
|
|
193
191
|
|
|
192
|
+
if (this.$refs.emailInput.checkValidity()) {
|
|
193
|
+
this.isLoading = true;
|
|
194
|
+
return true;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
this.isLoading = false;
|
|
198
|
+
this.emailError = this.emailErrorMessage;
|
|
194
199
|
e.preventDefault();
|
|
195
200
|
return false;
|
|
196
201
|
},
|