diff --git a/src/renderer/components/distraction-settings/distraction-settings.js b/src/renderer/components/distraction-settings/distraction-settings.js index 22a1f7d4..e00a68a7 100644 --- a/src/renderer/components/distraction-settings/distraction-settings.js +++ b/src/renderer/components/distraction-settings/distraction-settings.js @@ -39,6 +39,9 @@ export default Vue.extend({ }, hideLiveChat: function () { return this.$store.getters.getHideLiveChat + }, + hideActiveSubscriptions: function () { + return this.$store.getters.getHideActiveSubscriptions } }, methods: { @@ -60,6 +63,7 @@ export default Vue.extend({ 'updateHideTrendingVideos', 'updateHidePopularVideos', 'updateHideLiveChat', + 'updateHideActiveSubscriptions', 'updatePlayNextVideo', 'updateDefaultTheatreMode' ]) diff --git a/src/renderer/components/distraction-settings/distraction-settings.vue b/src/renderer/components/distraction-settings/distraction-settings.vue index 26707279..54781a1a 100644 --- a/src/renderer/components/distraction-settings/distraction-settings.vue +++ b/src/renderer/components/distraction-settings/distraction-settings.vue @@ -33,6 +33,12 @@ :default-value="hideCommentLikes" @change="updateHideCommentLikes" /> +

-
diff --git a/src/renderer/store/modules/settings.js b/src/renderer/store/modules/settings.js index 0bfdf8b6..09cad179 100644 --- a/src/renderer/store/modules/settings.js +++ b/src/renderer/store/modules/settings.js @@ -71,7 +71,8 @@ const state = { hideRecommendedVideos: false, hideTrendingVideos: false, hidePopularVideos: false, - hideLiveChat: false + hideLiveChat: false, + hideActiveSubscriptions: false } const getters = { @@ -224,6 +225,9 @@ const getters = { }, getHideLiveChat: () => { return state.hideLiveChat + }, + getHideActiveSubscriptions: () => { + return state.hideActiveSubscriptions } } @@ -351,6 +355,9 @@ const actions = { case 'hideLiveChat': commit('setHideLiveChat', result.value) break + case 'hideActiveSubscriptions': + commit('setHideActiveSubscriptions', result.value) + break } }) } @@ -655,6 +662,14 @@ const actions = { }) }, + updateHideActiveSubscriptions ({ commit }, hideActiveSubscriptions) { + settingsDb.update({ _id: 'hideActiveSubscriptions' }, { _id: 'hideActiveSubscriptions', value: hideActiveSubscriptions }, { upsert: true }, (err, numReplaced) => { + if (!err) { + commit('setHideActiveSubscriptions', hideActiveSubscriptions) + } + }) + }, + updateHideLiveChat ({ commit }, hideLiveChat) { settingsDb.update({ _id: 'hideLiveChat' }, { _id: 'hideLiveChat', value: hideLiveChat }, { upsert: true }, (err, numReplaced) => { if (!err) { @@ -796,6 +811,9 @@ const mutations = { }, setHideLiveChat (state, hideLiveChat) { state.hideLiveChat = hideLiveChat + }, + setHideActiveSubscriptions (state, hideActiveSubscriptions) { + state.hideActiveSubscriptions = hideActiveSubscriptions } } diff --git a/static/locales/en-US.yaml b/static/locales/en-US.yaml index 2f53e590..a4a710b5 100644 --- a/static/locales/en-US.yaml +++ b/static/locales/en-US.yaml @@ -213,6 +213,7 @@ Settings: Hide Trending Videos: Hide Trending Videos Hide Popular Videos: Hide Popular Videos Hide Live Chat: Hide Live Chat + Hide Active Subscriptions: Hide Active Subscriptions Data Settings: Data Settings: Data Settings Select Import Type: Select Import Type diff --git a/static/locales/en_GB.yaml b/static/locales/en_GB.yaml index 7cb6cec3..1631b101 100644 --- a/static/locales/en_GB.yaml +++ b/static/locales/en_GB.yaml @@ -275,6 +275,7 @@ Settings: Hide Channel Subscribers: Hide Channel Subscribers Hide Video Likes And Dislikes: Hide Video Likes And Dislikes Hide Video Views: Hide Video Views + Hide Active Subscriptions: Hide Active Subscriptions Distraction Free Settings: Distraction Free Settings The app needs to restart for changes to take effect. Restart and apply change?: The app needs to restart for changes to take effect. Do you want to restart and apply