From 8c88571f6f6b4c6302d606a2d2207dae81b2c6d5 Mon Sep 17 00:00:00 2001 From: Sai Deepesh Date: Sat, 6 Mar 2021 21:51:22 +0530 Subject: [PATCH] feat: added ability to hide Playlists (#972) --- .../distraction-settings.js | 4 ++++ .../distraction-settings.vue | 6 ++++++ src/renderer/components/side-nav/side-nav.js | 3 +++ src/renderer/components/side-nav/side-nav.vue | 1 + src/renderer/store/modules/settings.js | 21 +++++++++++++++++++ static/locales/en-US.yaml | 1 + 6 files changed, 36 insertions(+) diff --git a/src/renderer/components/distraction-settings/distraction-settings.js b/src/renderer/components/distraction-settings/distraction-settings.js index fc74c37c..790368b4 100644 --- a/src/renderer/components/distraction-settings/distraction-settings.js +++ b/src/renderer/components/distraction-settings/distraction-settings.js @@ -37,6 +37,9 @@ export default Vue.extend({ hidePopularVideos: function () { return this.$store.getters.getHidePopularVideos }, + hidePlaylists: function () { + return this.$store.getters.getHidePlaylists + }, hideLiveChat: function () { return this.$store.getters.getHideLiveChat }, @@ -61,6 +64,7 @@ export default Vue.extend({ 'updateHideRecommendedVideos', 'updateHideTrendingVideos', 'updateHidePopularVideos', + 'updateHidePlaylists', 'updateHideLiveChat', 'updateHideActiveSubscriptions', 'updatePlayNextVideo', diff --git a/src/renderer/components/distraction-settings/distraction-settings.vue b/src/renderer/components/distraction-settings/distraction-settings.vue index 54781a1a..258e365d 100644 --- a/src/renderer/components/distraction-settings/distraction-settings.vue +++ b/src/renderer/components/distraction-settings/distraction-settings.vue @@ -59,6 +59,12 @@ :default-value="hidePopularVideos" @change="updateHidePopularVideos" /> +