mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-22 21:47:25 +00:00
commit
0735899220
@ -29,7 +29,7 @@
|
|||||||
/>
|
/>
|
||||||
<ChaptersBar
|
<ChaptersBar
|
||||||
:mobileLayout="isMobile"
|
:mobileLayout="isMobile"
|
||||||
v-if="video?.chapters?.length > 0"
|
v-if="video?.chapters?.length > 0 && showChapters"
|
||||||
:chapters="video.chapters"
|
:chapters="video.chapters"
|
||||||
:player-position="currentTime"
|
:player-position="currentTime"
|
||||||
@seek="navigate"
|
@seek="navigate"
|
||||||
@ -137,6 +137,18 @@
|
|||||||
@click="showDesc = !showDesc"
|
@click="showDesc = !showDesc"
|
||||||
v-t="`actions.${showDesc ? 'minimize_description' : 'show_description'}`"
|
v-t="`actions.${showDesc ? 'minimize_description' : 'show_description'}`"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<span class="btn">
|
||||||
|
<input
|
||||||
|
v-show="video?.chapters?.length > 0"
|
||||||
|
id="showChapters"
|
||||||
|
type="checkbox"
|
||||||
|
checked
|
||||||
|
v-model="showChapters"
|
||||||
|
/>
|
||||||
|
<label class="ml-2" for="showChapters" v-t="'actions.show_chapters'" />
|
||||||
|
</span>
|
||||||
|
|
||||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||||
<div v-show="showDesc" class="break-words" v-html="purifyHTML(video.description)" />
|
<div v-show="showDesc" class="break-words" v-html="purifyHTML(video.description)" />
|
||||||
<div
|
<div
|
||||||
@ -239,6 +251,7 @@ export default {
|
|||||||
selectedAutoPlay: null,
|
selectedAutoPlay: null,
|
||||||
showDesc: true,
|
showDesc: true,
|
||||||
showRecs: true,
|
showRecs: true,
|
||||||
|
showChapters: true,
|
||||||
comments: null,
|
comments: null,
|
||||||
subscribed: false,
|
subscribed: false,
|
||||||
channelId: null,
|
channelId: null,
|
||||||
|
@ -105,7 +105,8 @@
|
|||||||
"piped_link": "Piped link",
|
"piped_link": "Piped link",
|
||||||
"follow_link": "Follow link",
|
"follow_link": "Follow link",
|
||||||
"copy_link": "Copy link",
|
"copy_link": "Copy link",
|
||||||
"time_code": "Time code (in seconds)"
|
"time_code": "Time code (in seconds)",
|
||||||
|
"show_chapters": "Chapters"
|
||||||
},
|
},
|
||||||
"comment": {
|
"comment": {
|
||||||
"pinned_by": "Pinned by",
|
"pinned_by": "Pinned by",
|
||||||
|
Loading…
Reference in New Issue
Block a user