diff --git a/web/src/components/CourseRedactor.vue b/web/src/components/CourseRedactor.vue index 67cb9e4a..608e20e6 100644 --- a/web/src/components/CourseRedactor.vue +++ b/web/src/components/CourseRedactor.vue @@ -699,19 +699,21 @@ }, validate(silent) { console.log('validate', this.$v.$invalid); - this.showErrors = true; - if (this.$v.course.$invalid) { - if(!silent) { + + if(!silent) { + this.showErrors = true; + if (this.$v.course.$invalid) { for(let i in this.$v.course) { if(this.$v.course[i].$invalid) { showNotification("error", "Ошибка валидации поля "+this.fields[i]); } } + // showNotification("error", "Заполните все необходимые поля"); + return false; } - // showNotification("error", "Заполните все необходимые поля"); - return false; } + return true; }, validateLesson(silent) {