Hide chapters component if there are no chapters.

Closes #756
This commit is contained in:
FireMasterK 2022-01-22 23:23:03 +00:00
parent c87af466c8
commit de8fb4fab5
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD

View File

@ -90,7 +90,7 @@
/>
<!-- eslint-disable-next-line vue/no-v-html -->
<p v-show="showDesc" class="break-words" v-html="purifyHTML(video.description)" />
<Chapters :chapters="video.chapters" @seek="navigate" />
<Chapters v-if="video?.chapters?.length > 0" :chapters="video.chapters" @seek="navigate" />
<div
v-if="showDesc && sponsors && sponsors.segments"
v-text="`${$t('video.sponsor_segments')}: ${sponsors.segments.length}`"