publish disabled fix

remotes/origin/hasaccess
Vitaly Baev 8 years ago
parent 15a28ca3b5
commit 81597ab56b
  1. 6
      web/src/components/CourseRedactor.vue

@ -673,14 +673,14 @@
watch: {
'course': {
handler: function (newValue, oldValue) {
if (this.courseSyncHook) {
return;
}
// Если курс загрузился и есть ID - делаем кнопки превью и публикации активными
if (newValue.id) {
$('#course-redactor__preview-button').removeAttr('disabled');
$('#course-redactor__publish-button').removeAttr('disabled');
}
if (this.courseSyncHook) {
return;
}
this.saveCourseDraft(newValue, oldValue);
},
deep: true,

Loading…
Cancel
Save