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,7 +81,6 @@ 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.'));
......@@ -89,6 +88,7 @@ export default {
return this.invalidData.length === 0;
},
},
mounted() {
// Get a new rule instance so we can use quicksearch.
if (!this.id || this.id === '') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment