diff --git a/src/renderer/views/Channel/Channel.js b/src/renderer/views/Channel/Channel.js index 7ea6c27e5061c..b41e43fb6d16a 100644 --- a/src/renderer/views/Channel/Channel.js +++ b/src/renderer/views/Channel/Channel.js @@ -105,15 +105,11 @@ export default defineComponent({ errorMessage: '', showSearchBar: true, showShareMenu: true, - videoLiveSelectValues: [ + videoLiveShortSelectValues: [ 'newest', 'popular', 'oldest' ], - shortSelectValues: [ - 'newest', - 'popular' - ], playlistSelectValues: [ 'newest', 'last' @@ -184,7 +180,7 @@ export default defineComponent({ return profileList[0].subscriptions.some((channel) => channel.id === this.id) }, - videoLiveSelectNames: function () { + videoLiveShortSelectNames: function () { return [ this.$t('Channel.Videos.Sort Types.Newest'), this.$t('Channel.Videos.Sort Types.Most Popular'), @@ -192,13 +188,6 @@ export default defineComponent({ ] }, - shortSelectNames: function () { - return [ - this.$t('Channel.Videos.Sort Types.Newest'), - this.$t('Channel.Videos.Sort Types.Most Popular') - ] - }, - playlistSelectNames: function () { return [ this.$t('Channel.Playlists.Sort Types.Newest'), @@ -769,7 +758,7 @@ export default defineComponent({ this.showVideoSortBy = videosTab.filters.length > 1 if (this.showVideoSortBy && this.videoSortBy !== 'newest') { - const index = this.videoLiveSelectValues.indexOf(this.videoSortBy) + const index = this.videoLiveShortSelectValues.indexOf(this.videoSortBy) videosTab = await videosTab.applyFilter(videosTab.filters[index]) } @@ -837,7 +826,7 @@ export default defineComponent({ this.showShortSortBy = shortsTab.filters.length > 1 if (this.showShortSortBy && this.shortSortBy !== 'newest') { - const index = this.shortSelectValues.indexOf(this.shortSortBy) + const index = this.videoLiveShortSelectValues.indexOf(this.shortSortBy) shortsTab = await shortsTab.applyFilter(shortsTab.filters[index]) } @@ -905,7 +894,7 @@ export default defineComponent({ this.showLiveSortBy = liveTab.filters.length > 1 if (this.showLiveSortBy && this.liveSortBy !== 'newest') { - const index = this.videoLiveSelectValues.indexOf(this.liveSortBy) + const index = this.videoLiveShortSelectValues.indexOf(this.liveSortBy) liveTab = await liveTab.applyFilter(liveTab.filters[index]) } diff --git a/src/renderer/views/Channel/Channel.vue b/src/renderer/views/Channel/Channel.vue index 687ab94a4e76c..73b20664dc367 100644 --- a/src/renderer/views/Channel/Channel.vue +++ b/src/renderer/views/Channel/Channel.vue @@ -233,27 +233,27 @@