mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-12-13 22:00:28 +05:30
parent
f40910a500
commit
96950e61e7
@ -84,6 +84,10 @@
|
|||||||
<b>Show Comments</b>
|
<b>Show Comments</b>
|
||||||
<br />
|
<br />
|
||||||
<input class="uk-checkbox" v-model="showComments" @change="onChange($event)" type="checkbox" />
|
<input class="uk-checkbox" v-model="showComments" @change="onChange($event)" type="checkbox" />
|
||||||
|
<br />
|
||||||
|
<b>Minimize Description by default</b>
|
||||||
|
<br />
|
||||||
|
<input class="uk-checkbox" v-model="minimizeDescription" @change="onChange($event)" type="checkbox" />
|
||||||
<h2>Instances List</h2>
|
<h2>Instances List</h2>
|
||||||
<table class="uk-table">
|
<table class="uk-table">
|
||||||
<thead>
|
<thead>
|
||||||
@ -142,6 +146,7 @@ export default {
|
|||||||
country: "US",
|
country: "US",
|
||||||
defaultHomepage: "trending",
|
defaultHomepage: "trending",
|
||||||
showComments: true,
|
showComments: true,
|
||||||
|
minimizeDescription: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
activated() {
|
activated() {
|
||||||
@ -217,6 +222,7 @@ export default {
|
|||||||
this.country = this.getPreferenceString("region", "US");
|
this.country = this.getPreferenceString("region", "US");
|
||||||
this.defaultHomepage = this.getPreferenceString("homepage", "trending");
|
this.defaultHomepage = this.getPreferenceString("homepage", "trending");
|
||||||
this.showComments = this.getPreferenceBoolean("comments", true);
|
this.showComments = this.getPreferenceBoolean("comments", true);
|
||||||
|
this.minimizeDescription = this.getPreferenceBoolean("minimizeDescription", false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -247,6 +253,7 @@ export default {
|
|||||||
localStorage.setItem("region", this.country);
|
localStorage.setItem("region", this.country);
|
||||||
localStorage.setItem("homepage", this.defaultHomepage);
|
localStorage.setItem("homepage", this.defaultHomepage);
|
||||||
localStorage.setItem("comments", this.showComments);
|
localStorage.setItem("comments", this.showComments);
|
||||||
|
localStorage.setItem("minimizeDescription", this.minimizeDescription);
|
||||||
|
|
||||||
if (shouldReload) window.location.reload();
|
if (shouldReload) window.location.reload();
|
||||||
}
|
}
|
||||||
|
@ -133,6 +133,7 @@ export default {
|
|||||||
activated() {
|
activated() {
|
||||||
this.active = true;
|
this.active = true;
|
||||||
this.selectedAutoPlay = this.getPreferenceBoolean("autoplay", true);
|
this.selectedAutoPlay = this.getPreferenceBoolean("autoplay", true);
|
||||||
|
this.showDesc = !this.getPreferenceBoolean("minimizeDescription", false);
|
||||||
if (this.video.duration) {
|
if (this.video.duration) {
|
||||||
document.title = this.video.title + " - Piped";
|
document.title = this.video.title + " - Piped";
|
||||||
this.$refs.videoPlayer.loadVideo();
|
this.$refs.videoPlayer.loadVideo();
|
||||||
|
Loading…
Reference in New Issue
Block a user