From a70556494ed2f6af2b8dcc63c48b2671c6830475 Mon Sep 17 00:00:00 2001 From: Vitaly Baev Date: Thu, 15 Feb 2018 19:25:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B2=D1=8B=D0=B1?= =?UTF-8?q?=D0=BE=D1=80=D0=B0=20=D0=BE=D1=82=D0=BB=D0=BE=D0=B6=D0=B5=D0=BD?= =?UTF-8?q?=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=BA=D1=83=D1=80=D1=81=D0=B0=20+?= =?UTF-8?q?=20=D0=B4=D0=B8=D0=B7=D0=B5=D0=B9=D0=B1=D0=BB=20=D0=BA=D0=BD?= =?UTF-8?q?=D0=BE=D0=BF=D0=BE=D0=BA=20=D0=BF=D1=80=D0=B5=D0=B2=D1=8C=D1=8E?= =?UTF-8?q?=20=D0=B8=20=D0=BE=D0=BF=D1=83=D0=B1=D0=BB=D0=B8=D0=BA=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D1=82=D1=8C,=20=D0=BF=D0=BE=D0=BA=D0=B0=20=D0=BA?= =?UTF-8?q?=D1=83=D1=80=D1=81=20=D0=BD=D0=B5=20=D0=B7=D0=B0=D0=B3=D1=80?= =?UTF-8?q?=D1=83=D0=B7=D0=B8=D1=82=D1=81=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/templates/lilcity/edit_index.html | 4 ++-- web/src/components/CourseRedactor.vue | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) 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,