diff --git a/src/renderer/store/modules/settings.js b/src/renderer/store/modules/settings.js
index 47af776b..70adfa4b 100644
--- a/src/renderer/store/modules/settings.js
+++ b/src/renderer/store/modules/settings.js
@@ -74,6 +74,7 @@ const state = {
hideRecommendedVideos: false,
hideTrendingVideos: false,
hidePopularVideos: false,
+ hidePlaylists: false,
hideLiveChat: false,
hideActiveSubscriptions: false
}
@@ -242,9 +243,15 @@ const getters = {
getHidePopularVideos: () => {
return state.hidePopularVideos
},
+
+ getHidePlaylists: () => {
+ return state.hidePlaylists
+ },
+
getHideLiveChat: () => {
return state.hideLiveChat
},
+
getHideActiveSubscriptions: () => {
return state.hideActiveSubscriptions
}
@@ -383,6 +390,9 @@ const actions = {
case 'hidePopularVideos':
commit('setHidePopularVideos', result.value)
break
+ case 'hidePlaylists':
+ commit('setHidePlaylists', result.value)
+ break
case 'hideLiveChat':
commit('setHideLiveChat', result.value)
break
@@ -717,6 +727,14 @@ const actions = {
})
},
+ updateHidePlaylists ({ commit }, hidePlaylists) {
+ settingsDb.update({ _id: 'hidePlaylists' }, { _id: 'hidePlaylists', value: hidePlaylists }, { upsert: true }, (err, numReplaced) => {
+ if (!err) {
+ commit('setHidePlaylists', hidePlaylists)
+ }
+ })
+ },
+
updateHideActiveSubscriptions ({ commit }, hideActiveSubscriptions) {
settingsDb.update({ _id: 'hideActiveSubscriptions' }, { _id: 'hideActiveSubscriptions', value: hideActiveSubscriptions }, { upsert: true }, (err, numReplaced) => {
if (!err) {
@@ -873,6 +891,9 @@ const mutations = {
setHidePopularVideos (state, hidePopularVideos) {
state.hidePopularVideos = hidePopularVideos
},
+ setHidePlaylists (state, hidePlaylists) {
+ state.hidePlaylists = hidePlaylists
+ },
setHideLiveChat (state, hideLiveChat) {
state.hideLiveChat = hideLiveChat
},
diff --git a/static/locales/en-US.yaml b/static/locales/en-US.yaml
index 410d9431..987828fe 100644
--- a/static/locales/en-US.yaml
+++ b/static/locales/en-US.yaml
@@ -219,6 +219,7 @@ Settings:
Hide Recommended Videos: Hide Recommended Videos
Hide Trending Videos: Hide Trending Videos
Hide Popular Videos: Hide Popular Videos
+ Hide Playlists: Hide Playlists
Hide Live Chat: Hide Live Chat
Hide Active Subscriptions: Hide Active Subscriptions
Data Settings: