fix: mistakes in chapters toggle implementation

This commit is contained in:
Sai Karthik 2023-06-13 23:15:43 +05:30
parent ce2e3dbfb6
commit 5c79735edd
No known key found for this signature in database
GPG Key ID: F5B9A961BF6EAF0E
1 changed files with 2 additions and 12 deletions

View File

@ -127,20 +127,13 @@
/> />
</label> </label>
<!-- chapters layout on mobile --> <!-- chapters layout on mobile -->
<label class="pref" for="chkMinimizeChapters"> <label class="lg:invisible pref" for="chkMinimizeChapters">
<strong v-t="'actions.chapters_layout_mobile'" /> <strong v-t="'actions.chapters_layout_mobile'" />
<select id="ddlDefaultHomepage" v-model="mobileChapterLayout" class="select w-auto" @change="onChange($event)"> <select id="ddlDefaultHomepage" v-model="mobileChapterLayout" class="select w-auto" @change="onChange($event)">
<option v-t="'video.chapters_horizontal'" value="Horizontal" /> <option v-t="'video.chapters_horizontal'" value="Horizontal" />
<option v-t="'video.chapters_vertical'" value="Vertical" /> <option v-t="'video.chapters_vertical'" value="Vertical" />
</select> </select>
<!-- <input
id="chkMinimizeChapters"
v-model="minimizeChapters"
class="checkbox"
type="checkbox"
@change="onChange($event)"
/> -->
</label> </label>
<label class="pref" for="chkShowWatchOnYouTube"> <label class="pref" for="chkShowWatchOnYouTube">
<strong v-t="'actions.show_watch_on_youtube'" /> <strong v-t="'actions.show_watch_on_youtube'" />
@ -528,10 +521,7 @@ export default {
this.disableLBRY = this.getPreferenceBoolean("disableLBRY", false); this.disableLBRY = this.getPreferenceBoolean("disableLBRY", false);
this.proxyLBRY = this.getPreferenceBoolean("proxyLBRY", false); this.proxyLBRY = this.getPreferenceBoolean("proxyLBRY", false);
this.hideWatched = this.getPreferenceBoolean("hideWatched", false); this.hideWatched = this.getPreferenceBoolean("hideWatched", false);
this.mobileChapterLayout = this.getPreferenceString( this.mobileChapterLayout = this.getPreferenceString("mobileChapterLayout", "Vertical");
"mobileChapterLayout",
localStorage.getItem("mobileChapterLayout") || "Vertical",
);
if (this.selectedLanguage != "en") { if (this.selectedLanguage != "en") {
try { try {
this.CountryMap = await import(`../utils/CountryMaps/${this.selectedLanguage}.json`).then( this.CountryMap = await import(`../utils/CountryMaps/${this.selectedLanguage}.json`).then(