|
|
|
|
@ -1,5 +1,5 @@ |
|
|
|
|
<template> |
|
|
|
|
<div id="lilcity__course-redactor" v-on:course_publish="onCoursePublish"> |
|
|
|
|
<div id="lilcity__course-redactor" v-on:course_publish="onCoursePublish" v-on:course_preview="onCoursePreview"> |
|
|
|
|
<div v-if="!courseLoading"> |
|
|
|
|
<form v-if="viewSection !== 'lessons-edit'" @submit.prevent="onSubmit"> |
|
|
|
|
<div class="info"> |
|
|
|
|
@ -510,6 +510,10 @@ |
|
|
|
|
publishButton.removeAttr('disabled'); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
onCoursePreview() { |
|
|
|
|
let newTab = window.open(`/course/${this.course.id}`, '_blank'); |
|
|
|
|
newTab.focus(); |
|
|
|
|
}, |
|
|
|
|
saveCourseDraft: debounce(function (newValue, oldValue) { |
|
|
|
|
if (!oldValue.id) { |
|
|
|
|
return; |
|
|
|
|
|