Skip to content

Commit f8679ca

Browse files
Updated showinvalidtextprop to true
1 parent 8228e85 commit f8679ca

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

contentcuration/contentcuration/frontend/administration/pages/Users/EmailUsersDialog.vue

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
label="Email body"
101101
:required="true"
102102
:invalid="errors.message"
103-
:showInvalidText="showInvalidText && errors.message"
103+
:showInvalidText="true"
104104
invalidText="Field is required"
105105
:showLabel="true"
106106
:appearanceOverrides="getAppearanceOverrides()"
@@ -177,7 +177,6 @@
177177
return {
178178
showWarning: false,
179179
recipients: this.initialRecipients || [],
180-
showInvalidText: false,
181180
};
182181
},
183182
computed: {
@@ -254,7 +253,6 @@
254253
this.subject = '';
255254
this.message = '';
256255
this.showWarning = false;
257-
this.showInvalidText = false;
258256
this.reset(); // Reset form validation state
259257
},
260258
addPlaceholder(placeholder) {
@@ -272,19 +270,7 @@
272270
273271
return baseStyles;
274272
},
275-
276-
// Form mixin methods
277-
// eslint-disable-next-line kolibri/vue-no-unused-methods, vue/no-unused-properties
278-
onValidationFailed() {
279-
this.showInvalidText = true;
280-
if (this.$refs.form && this.$refs.form.scrollIntoView) {
281-
this.$refs.form.scrollIntoView({ behavior: 'smooth' });
282-
}
283-
},
284-
285273
onSubmit() {
286-
this.showInvalidText = true;
287-
288274
if (this.errorCount() > 0) {
289275
return;
290276
}

0 commit comments

Comments
 (0)