|
|
|
|
@ -957,15 +957,15 @@ |
|
|
|
|
watch: { |
|
|
|
|
'course': { |
|
|
|
|
handler: function (newValue, oldValue) { |
|
|
|
|
console.log('watch', JSON.stringify(newValue), JSON.stringify(oldValue)); |
|
|
|
|
// console.log('watch', JSON.stringify(newValue), JSON.stringify(oldValue)); |
|
|
|
|
// Если курс загрузился и есть ID - делаем кнопки превью и публикации активными |
|
|
|
|
console.log('newValue.id', newValue.id); |
|
|
|
|
if (newValue.id) { |
|
|
|
|
console.log('newValue.id disabled remove', newValue.id); |
|
|
|
|
// console.log('newValue.id disabled remove', newValue.id); |
|
|
|
|
$('#course-redactor__preview-button').removeAttr('disabled'); |
|
|
|
|
$('#course-redactor__publish-button').removeAttr('disabled'); |
|
|
|
|
} |
|
|
|
|
console.log('courseSyncHook', this.courseSyncHook); |
|
|
|
|
// console.log('courseSyncHook', this.courseSyncHook); |
|
|
|
|
if (this.courseSyncHook || this.courseLoading) { |
|
|
|
|
console.log('abort save draft', this.courseSyncHook, this.courseLoading); |
|
|
|
|
return; |
|
|
|
|
|