diff --git a/project/templates/lilcity/edit_index.html b/project/templates/lilcity/edit_index.html index 1b39b2ee..0c2fc067 100644 --- a/project/templates/lilcity/edit_index.html +++ b/project/templates/lilcity/edit_index.html @@ -47,12 +47,12 @@
- - +
{% if request.user.is_authenticated %}
diff --git a/web/src/components/CourseRedactor.vue b/web/src/components/CourseRedactor.vue index b19c3a91..7a44e3e1 100644 --- a/web/src/components/CourseRedactor.vue +++ b/web/src/components/CourseRedactor.vue @@ -553,6 +553,9 @@ if (this.course.coverImage) { courseData.coverImage = this.course.coverImage; } + if (this.course.is_deferred) { + courseData.is_deferred = true; + } this.course = courseData; if (courseData.url) { this.slugChanged = true; @@ -669,6 +672,11 @@ if (this.courseSyncHook) { return; } + // Если курс загрузился и есть ID - делаем кнопки превью и публикации активными + if (newValue.id) { + $('#course-redactor__preview-button').removeAttr('disabled'); + $('#course-redactor__publish-button').removeAttr('disabled'); + } this.saveCourseDraft(newValue, oldValue); }, deep: true,