Skip to content

Commit abec655

Browse files
committed
Feature: parental control -> hide video and channel info
1 parent 6a1b027 commit abec655

5 files changed

Lines changed: 23 additions & 1 deletion

File tree

src/renderer/components/ParentalControlSettings.vue

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
:default-value="hideCreateNewProfileButton"
3737
@change="updateHideCreateNewProfileButton"
3838
/>
39+
<FtToggleSwitch
40+
:label="$t('Settings.Parental Control Settings.Hide Video & Channel Info')"
41+
compact
42+
:default-value="hideVideoChannelInfo"
43+
@change="updateHideVideoChannelInfo"
44+
/>
3945
</div>
4046
</div>
4147
</FtSettingsSection>
@@ -69,6 +75,10 @@ const hideAnnouncements = computed(() => {
6975
return store.getters.getHideAnnouncements
7076
})
7177
78+
const hideVideoChannelInfo = computed(() => {
79+
return store.getters.getHideVideoChannelInfo
80+
})
81+
7282
/**
7383
* @param {boolean} value
7484
*/
@@ -103,4 +113,11 @@ function updateHideCreateNewProfileButton(value) {
103113
function updateHideAnnouncements(value) {
104114
store.dispatch('updateHideAnnouncements', value)
105115
}
116+
117+
/**
118+
* @param {boolean} value
119+
*/
120+
function updateHideVideoChannelInfo(value) {
121+
store.dispatch('updateHideVideoChannelInfo', value)
122+
}
106123
</script>

src/renderer/store/modules/settings.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ const state = {
208208
showFamilyFriendlyOnly: false,
209209
hideCreateNewProfileButton: false,
210210
hideAnnouncements: false,
211+
hideVideoChannelInfo: false,
211212
hideSharingActions: false,
212213
hideSubscriptionsVideos: false,
213214
hideSubscriptionsShorts: false,

src/renderer/views/Watch/Watch.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ export default defineComponent({
207207
hideVideoDescription: function () {
208208
return this.$store.getters.getHideVideoDescription
209209
},
210+
hideVideoChannelInfo: function () {
211+
return this.$store.getters.getHideVideoChannelInfo
212+
},
210213
showFamilyFriendlyOnly: function () {
211214
return this.$store.getters.getShowFamilyFriendlyOnly
212215
},

src/renderer/views/Watch/Watch.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
class="ageRestricted"
117117
/>
118118
<div
119-
v-if="(isFamilyFriendly || !showFamilyFriendlyOnly)"
119+
v-if="(!hideVideoChannelInfo && (isFamilyFriendly || !showFamilyFriendlyOnly))"
120120
ref="infoArea"
121121
class="infoArea"
122122
:class="{ infoAreaSticky }"

static/locales/en-US.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ Settings:
641641
Hide Search Bar: Hide Search Bar
642642
Hide Create New Profile Button: Hide Create New Profile Button
643643
Hide Announcements: Hide Announcements
644+
Hide Video & Channel Info: Hide Video & Channel Info
644645
Download Settings:
645646
Download Settings: Download
646647
Ask Download Path: Ask for download path

0 commit comments

Comments
 (0)