File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
contentcuration/contentcuration/frontend/administration/pages/Users Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change 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()"
177177 return {
178178 showWarning: false ,
179179 recipients: this .initialRecipients || [],
180- showInvalidText: false ,
181180 };
182181 },
183182 computed: {
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 ) {
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 }
You can’t perform that action at this time.
0 commit comments