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