|
|
|
|
@ -34,7 +34,8 @@ |
|
|
|
|
v-model="course.title" |
|
|
|
|
placeholder="Добавить заголовок"></textarea> |
|
|
|
|
</div> |
|
|
|
|
<div class="courses__content field" v-bind:class="{ error: ($v.course.short_description.$dirty || showErrors) && $v.course.short_description.$invalid }"> |
|
|
|
|
<div class="courses__content field" style="width: 300px;" |
|
|
|
|
v-bind:class="{ error: ($v.course.short_description.$dirty || showErrors) && $v.course.short_description.$invalid }"> |
|
|
|
|
<vue-redactor :value.sync="course.short_description" placeholder="Добавить краткое описание"/> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
@ -663,7 +664,7 @@ |
|
|
|
|
if(this.live) { |
|
|
|
|
window.location = '/school/lessons'; |
|
|
|
|
} else { |
|
|
|
|
api.publishCourse(this.course.id, this.accessToken) |
|
|
|
|
api.publishCourse(this.course, this.accessToken) |
|
|
|
|
.then((response) => { |
|
|
|
|
window.location = '/course/on-moderation'; |
|
|
|
|
}) |
|
|
|
|
@ -1006,7 +1007,7 @@ |
|
|
|
|
}, |
|
|
|
|
courseFullUrl() { |
|
|
|
|
let suffix = this.course.slug || this.course.id || 'ваша_ссылка'; |
|
|
|
|
return `https://lil.city/course/${suffix}`; |
|
|
|
|
return `https://lil.school/course/${suffix}`; |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
beforeDestroy() { |
|
|
|
|
|