mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Replace showComments by minimizeComments in preferences
This commit is contained in:
parent
5a7f7c1f8d
commit
ffc091131f
2 changed files with 9 additions and 11 deletions
|
@ -66,11 +66,11 @@
|
||||||
@change="onChange($event)"
|
@change="onChange($event)"
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
<label class="pref" for="chkShowComments">
|
<label class="pref" for="chkMinimizeComments">
|
||||||
<strong v-t="'actions.show_comments'" />
|
<strong v-t="'actions.minimize_comments_default'" />
|
||||||
<input
|
<input
|
||||||
id="chkShowComments"
|
id="chkMinimizeComments"
|
||||||
v-model="showComments"
|
v-model="minimizeComments"
|
||||||
class="checkbox"
|
class="checkbox"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
@change="onChange($event)"
|
@change="onChange($event)"
|
||||||
|
@ -365,7 +365,7 @@ export default {
|
||||||
countryMap: CountryMap,
|
countryMap: CountryMap,
|
||||||
countrySelected: "US",
|
countrySelected: "US",
|
||||||
defaultHomepage: "trending",
|
defaultHomepage: "trending",
|
||||||
showComments: true,
|
minimizeComments: false,
|
||||||
minimizeDescription: false,
|
minimizeDescription: false,
|
||||||
minimizeRecommendations: false,
|
minimizeRecommendations: false,
|
||||||
watchHistory: false,
|
watchHistory: false,
|
||||||
|
@ -501,7 +501,7 @@ export default {
|
||||||
this.bufferingGoal = Math.max(Number(localStorage.getItem("bufferGoal")), 10);
|
this.bufferingGoal = Math.max(Number(localStorage.getItem("bufferGoal")), 10);
|
||||||
this.countrySelected = this.getPreferenceString("region", "US");
|
this.countrySelected = this.getPreferenceString("region", "US");
|
||||||
this.defaultHomepage = this.getPreferenceString("homepage", "trending");
|
this.defaultHomepage = this.getPreferenceString("homepage", "trending");
|
||||||
this.showComments = this.getPreferenceBoolean("comments", true);
|
this.minimizeComments = this.getPreferenceBoolean("minimizeComments", true);
|
||||||
this.minimizeDescription = this.getPreferenceBoolean("minimizeDescription", false);
|
this.minimizeDescription = this.getPreferenceBoolean("minimizeDescription", false);
|
||||||
this.minimizeRecommendations = this.getPreferenceBoolean("minimizeRecommendations", false);
|
this.minimizeRecommendations = this.getPreferenceBoolean("minimizeRecommendations", false);
|
||||||
this.watchHistory = this.getPreferenceBoolean("watchHistory", false);
|
this.watchHistory = this.getPreferenceBoolean("watchHistory", false);
|
||||||
|
@ -560,7 +560,7 @@ export default {
|
||||||
localStorage.setItem("bufferGoal", this.bufferingGoal);
|
localStorage.setItem("bufferGoal", this.bufferingGoal);
|
||||||
localStorage.setItem("region", this.countrySelected);
|
localStorage.setItem("region", this.countrySelected);
|
||||||
localStorage.setItem("homepage", this.defaultHomepage);
|
localStorage.setItem("homepage", this.defaultHomepage);
|
||||||
localStorage.setItem("comments", this.showComments);
|
localStorage.setItem("minimizeComments", this.minimizeComments);
|
||||||
localStorage.setItem("minimizeDescription", this.minimizeDescription);
|
localStorage.setItem("minimizeDescription", this.minimizeDescription);
|
||||||
localStorage.setItem("minimizeRecommendations", this.minimizeRecommendations);
|
localStorage.setItem("minimizeRecommendations", this.minimizeRecommendations);
|
||||||
localStorage.setItem("watchHistory", this.watchHistory);
|
localStorage.setItem("watchHistory", this.watchHistory);
|
||||||
|
|
|
@ -277,9 +277,6 @@ export default {
|
||||||
year: "numeric",
|
year: "numeric",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
commentsEnabled() {
|
|
||||||
return this.getPreferenceBoolean("comments", true);
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
// check screen size
|
// check screen size
|
||||||
|
@ -327,7 +324,7 @@ export default {
|
||||||
this.index = Number(this.$route.query.index);
|
this.index = Number(this.$route.query.index);
|
||||||
this.getPlaylistData();
|
this.getPlaylistData();
|
||||||
this.getSponsors();
|
this.getSponsors();
|
||||||
if (!this.isEmbed && this.commentsEnabled) this.getComments();
|
if (!this.isEmbed && this.showComments) this.getComments();
|
||||||
window.addEventListener("resize", () => {
|
window.addEventListener("resize", () => {
|
||||||
this.smallView = this.smallViewQuery.matches;
|
this.smallView = this.smallViewQuery.matches;
|
||||||
});
|
});
|
||||||
|
@ -335,6 +332,7 @@ export default {
|
||||||
activated() {
|
activated() {
|
||||||
this.active = true;
|
this.active = true;
|
||||||
this.selectedAutoPlay = this.getPreferenceBoolean("autoplay", false);
|
this.selectedAutoPlay = this.getPreferenceBoolean("autoplay", false);
|
||||||
|
this.showComments = !this.getPreferenceBoolean("minimizeComments", false);
|
||||||
this.showDesc = !this.getPreferenceBoolean("minimizeDescription", false);
|
this.showDesc = !this.getPreferenceBoolean("minimizeDescription", false);
|
||||||
this.showRecs = !this.getPreferenceBoolean("minimizeRecommendations", false);
|
this.showRecs = !this.getPreferenceBoolean("minimizeRecommendations", false);
|
||||||
if (this.video.duration) {
|
if (this.video.duration) {
|
||||||
|
|
Loading…
Reference in a new issue