diff --git a/src/renderer/components/ft-list-video-numbered/ft-list-video-numbered.js b/src/renderer/components/ft-list-video-numbered/ft-list-video-numbered.js index 50f1fb96d91f7..68a863beb58fd 100644 --- a/src/renderer/components/ft-list-video-numbered/ft-list-video-numbered.js +++ b/src/renderer/components/ft-list-video-numbered/ft-list-video-numbered.js @@ -74,46 +74,16 @@ export default defineComponent({ isCurrentVideo: { type: Boolean, default: false - }, - useChannelsHiddenPreference: { - type: Boolean, - default: false, } }, emits: ['move-video-down', 'move-video-up', 'pause-player', 'remove-from-playlist'], data: function () { return { - visible: false, - show: true, + visible: this.initialVisibleState, stopWatchingInitialVisibleState: null } }, - computed: { - channelsHidden() { - // Some component users like channel view will have this disabled - if (!this.useChannelsHiddenPreference) { return [] } - - return JSON.parse(this.$store.getters.getChannelsHidden).map((ch) => { - // Legacy support - if (typeof ch === 'string') { - return { name: ch, preferredName: '', icon: '' } - } - return ch - }) - }, - - // As we only use this component in Playlist and watch-video-playlist, - // where title filtering is never desired, we don't have any title filtering logic here, - // like we do in ft-list-video-lazy - - shouldBeVisible() { - return !(this.channelsHidden.some(ch => ch.name === this.data.authorId) || - this.channelsHidden.some(ch => ch.name === this.data.author)) - } - }, created() { - this.visible = this.initialVisibleState - if (!this.initialVisibleState) { this.stopWatchingInitialVisibleState = this.$watch('initialVisibleState', (newValue) => { this.visible = newValue @@ -124,18 +94,12 @@ export default defineComponent({ }, methods: { onVisibilityChanged: function (visible) { - if (visible && this.shouldBeVisible) { + if (visible) { this.visible = visible if (this.stopWatchingInitialVisibleState) { this.stopWatchingInitialVisibleState() this.stopWatchingInitialVisibleState = null } - } else if (visible) { - this.show = false - if (this.stopWatchingInitialVisibleState) { - this.stopWatchingInitialVisibleState() - this.stopWatchingInitialVisibleState = null - } } }, pausePlayer: function () { diff --git a/src/renderer/components/ft-list-video-numbered/ft-list-video-numbered.vue b/src/renderer/components/ft-list-video-numbered/ft-list-video-numbered.vue index 44f7b808092d0..192bcc03b1a35 100644 --- a/src/renderer/components/ft-list-video-numbered/ft-list-video-numbered.vue +++ b/src/renderer/components/ft-list-video-numbered/ft-list-video-numbered.vue @@ -1,6 +1,5 @@