mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-10 02:08:21 +00:00
Add ability to disable showing comments.
This commit is contained in:
parent
584f1854e2
commit
76e9482f35
@ -74,6 +74,10 @@
|
|||||||
<option value="trending">Trending</option>
|
<option value="trending">Trending</option>
|
||||||
<option value="feed">Feed</option>
|
<option value="feed">Feed</option>
|
||||||
</select>
|
</select>
|
||||||
|
<br />
|
||||||
|
<b>Show Comments</b>
|
||||||
|
<br />
|
||||||
|
<input class="uk-checkbox" v-model="showComments" @change="onChange($event)" type="checkbox" />
|
||||||
<h2>Instances List</h2>
|
<h2>Instances List</h2>
|
||||||
<table class="uk-table">
|
<table class="uk-table">
|
||||||
<thead>
|
<thead>
|
||||||
@ -131,6 +135,7 @@ export default {
|
|||||||
countryMap: CountryMap.COUNTRIES,
|
countryMap: CountryMap.COUNTRIES,
|
||||||
country: "US",
|
country: "US",
|
||||||
defaultHomepage: "trending",
|
defaultHomepage: "trending",
|
||||||
|
showComments: true,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -202,6 +207,7 @@ export default {
|
|||||||
this.bufferingGoal = Math.max(Number(localStorage.getItem("bufferGoal")), 10);
|
this.bufferingGoal = Math.max(Number(localStorage.getItem("bufferGoal")), 10);
|
||||||
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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -231,6 +237,7 @@ export default {
|
|||||||
localStorage.setItem("bufferGoal", this.bufferingGoal);
|
localStorage.setItem("bufferGoal", this.bufferingGoal);
|
||||||
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);
|
||||||
|
|
||||||
if (shouldReload) window.location.reload();
|
if (shouldReload) window.location.reload();
|
||||||
}
|
}
|
||||||
|
@ -150,7 +150,7 @@ export default {
|
|||||||
this.$refs.videoPlayer.loadVideo();
|
this.$refs.videoPlayer.loadVideo();
|
||||||
});
|
});
|
||||||
this.getSponsors();
|
this.getSponsors();
|
||||||
this.getComments();
|
if (this.getPreferenceBoolean("comments", true)) this.getComments();
|
||||||
},
|
},
|
||||||
activated() {
|
activated() {
|
||||||
this.selectedAutoPlay = this.getPreferenceBoolean("autoplay", true);
|
this.selectedAutoPlay = this.getPreferenceBoolean("autoplay", true);
|
||||||
|
Loading…
Reference in New Issue
Block a user