Merge remote-tracking branch 'origin/dev' into dev

remotes/origin/hasaccess
nikita 8 years ago
commit fc6f7ed269
  1. 12
      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) {

Loading…
Cancel
Save