mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-12-13 13:50:27 +05:30
Merge pull request #1708 from thecashewtrader/minimize-chapters-by-default-option
Add Minimize Chapters by default option
This commit is contained in:
commit
2679b73622
@ -96,6 +96,16 @@
|
|||||||
@change="onChange($event)"
|
@change="onChange($event)"
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
|
<label class="pref" for="chkMinimizeChapters">
|
||||||
|
<strong v-t="'actions.minimize_chapters_default'" />
|
||||||
|
<input
|
||||||
|
id="chkMinimizeChapters"
|
||||||
|
v-model="minimizeChapters"
|
||||||
|
class="checkbox"
|
||||||
|
type="checkbox"
|
||||||
|
@change="onChange($event)"
|
||||||
|
/>
|
||||||
|
</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'" />
|
||||||
<input
|
<input
|
||||||
@ -378,6 +388,7 @@ export default {
|
|||||||
minimizeComments: false,
|
minimizeComments: false,
|
||||||
minimizeDescription: false,
|
minimizeDescription: false,
|
||||||
minimizeRecommendations: false,
|
minimizeRecommendations: false,
|
||||||
|
minimizeChapters: false,
|
||||||
showWatchOnYouTube: false,
|
showWatchOnYouTube: false,
|
||||||
watchHistory: false,
|
watchHistory: false,
|
||||||
searchHistory: false,
|
searchHistory: false,
|
||||||
@ -516,6 +527,7 @@ export default {
|
|||||||
this.minimizeComments = this.getPreferenceBoolean("minimizeComments", false);
|
this.minimizeComments = this.getPreferenceBoolean("minimizeComments", false);
|
||||||
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.minimizeChapters = this.getPreferenceBoolean("minimizeChapters", false);
|
||||||
this.showWatchOnYouTube = this.getPreferenceBoolean("showWatchOnYouTube", false);
|
this.showWatchOnYouTube = this.getPreferenceBoolean("showWatchOnYouTube", false);
|
||||||
this.watchHistory = this.getPreferenceBoolean("watchHistory", false);
|
this.watchHistory = this.getPreferenceBoolean("watchHistory", false);
|
||||||
this.searchHistory = this.getPreferenceBoolean("searchHistory", false);
|
this.searchHistory = this.getPreferenceBoolean("searchHistory", false);
|
||||||
@ -576,6 +588,7 @@ export default {
|
|||||||
localStorage.setItem("minimizeComments", this.minimizeComments);
|
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("minimizeChapters", this.minimizeChapters);
|
||||||
localStorage.setItem("showWatchOnYouTube", this.showWatchOnYouTube);
|
localStorage.setItem("showWatchOnYouTube", this.showWatchOnYouTube);
|
||||||
localStorage.setItem("watchHistory", this.watchHistory);
|
localStorage.setItem("watchHistory", this.watchHistory);
|
||||||
localStorage.setItem("searchHistory", this.searchHistory);
|
localStorage.setItem("searchHistory", this.searchHistory);
|
||||||
|
@ -344,6 +344,7 @@ export default {
|
|||||||
this.showComments = !this.getPreferenceBoolean("minimizeComments", 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);
|
||||||
|
this.showChapters = !this.getPreferenceBoolean("minimizeChapters", 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();
|
||||||
|
@ -90,6 +90,7 @@
|
|||||||
"delete_account": "Delete Account",
|
"delete_account": "Delete Account",
|
||||||
"logout": "Logout from this device",
|
"logout": "Logout from this device",
|
||||||
"minimize_recommendations_default": "Minimize Recommendations by default",
|
"minimize_recommendations_default": "Minimize Recommendations by default",
|
||||||
|
"minimize_chapters_default": "Minimize Chapters by default",
|
||||||
"show_watch_on_youtube": "Show Watch on YouTube button",
|
"show_watch_on_youtube": "Show Watch on YouTube button",
|
||||||
"invalidate_session": "Logout all devices",
|
"invalidate_session": "Logout all devices",
|
||||||
"different_auth_instance": "Use a different instance for authentication",
|
"different_auth_instance": "Use a different instance for authentication",
|
||||||
|
Loading…
Reference in New Issue
Block a user