Skip to content
Snippets Groups Projects
Commit 6b0323a8 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

relocate validate method, fixes #4904

Closes #4904

Merge request studip/studip!3678
parent 0f68501a
No related branches found
No related tags found
No related merge requests found
......@@ -81,13 +81,13 @@ export default {
this.courseList = data.attributes.payload.courses;
this.theMode = data.attributes.payload.modus;
},
},
validate() {
if (this.courseList.length === 0) {
this.invalidData.push(this.$gettext('Bitte geben Sie mindestens eine Veranstaltung an.'));
}
validate() {
if (this.courseList.length === 0) {
this.invalidData.push(this.$gettext('Bitte geben Sie mindestens eine Veranstaltung an.'));
}
return this.invalidData.length === 0;
return this.invalidData.length === 0;
},
},
mounted() {
// Get a new rule instance so we can use quicksearch.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment