@ -335,8 +335,7 @@
</div>
<div class="section section_gray">
<div class="section__center center center_sm">
<div class="title">Задавайте вопросы:</div>
<div class="title">{% if request.user.is_authenticated %}Задавайте вопросы:{% else %}Комментарии:{% endif %}</div>
<comments obj-type="course" obj-id="{{ course.id }}"></comments>
@ -192,7 +192,7 @@
{% endif %}
@ -113,7 +113,7 @@
</div> {% endcomment %}
<comments obj-type="lesson" obj-id="{{ lesson.id }}"></comments>
@ -7,6 +7,7 @@
</li>
</ul>
<div v-if="!$root.store.user.id && !isChat && noComments">Авторизуйтесь и оставьте первый комментарий!</div>
<comment-form v-if="$root.store.user.id && ! replyTo" :controller="controller"></comment-form>
</template>
@ -26,6 +27,7 @@
nodes: [],
controller: this,
flatComments: {},
noComments: false,
}
},
methods: {
@ -119,6 +121,7 @@
.then((response) => {
vm.loading = false;
vm.nodes = response.data;
vm.noComments = ! vm.nodes.length;
vm.connectToPusher();
})
.catch(() => {