diff --git a/src/renderer/views/Channel/Channel.css b/src/renderer/views/Channel/Channel.css index c2a6815f8b202..2cb198c3e0b3a 100644 --- a/src/renderer/views/Channel/Channel.css +++ b/src/renderer/views/Channel/Channel.css @@ -15,6 +15,8 @@ display: flex; flex-direction: row; justify-content: flex-end; + align-items: baseline; + gap: 10px; margin-block-end: 10px; } diff --git a/src/renderer/views/Channel/Channel.vue b/src/renderer/views/Channel/Channel.vue index 254e87d70277f..b555e2ea70580 100644 --- a/src/renderer/views/Channel/Channel.vue +++ b/src/renderer/views/Channel/Channel.vue @@ -39,6 +39,12 @@ :related-channels="relatedChannels" />
+ { return values }) +const showViewAllButton = computed(() => { + switch (currentTab.value) { + case 'videos': return (videoSortBy.value === 'newest' || videoSortBy.value === 'popular') && (showFetchMoreButton.value || filteredVideos.value.length > 1) + case 'shorts': return (shortSortBy.value === 'newest' || shortSortBy.value === 'popular') && (showFetchMoreButton.value || filteredShorts.value.length > 1) + case 'live': return (liveSortBy.value === 'newest' || liveSortBy.value === 'popular') && (showFetchMoreButton.value || filteredLive.value.length > 1) + default: return false + } +}) + +const currentTabViewAllRoute = computed(() => { + switch (currentTab.value) { + case 'videos': return `/playlist/${getChannelPlaylistId(id.value, 'videos', videoSortBy.value)}` + case 'shorts': return `/playlist/${getChannelPlaylistId(id.value, 'shorts', shortSortBy.value)}` + case 'live': return `/playlist/${getChannelPlaylistId(id.value, 'live', liveSortBy.value)}` + default: return '' + } +}) + watch(route, () => { if (skipRouteChangeWatcherOnce) { skipRouteChangeWatcherOnce = false diff --git a/static/locales/en-US.yaml b/static/locales/en-US.yaml index f7384a4400b14..7b094ff928fe5 100644 --- a/static/locales/en-US.yaml +++ b/static/locales/en-US.yaml @@ -775,6 +775,7 @@ Channel: This channel does not allow searching: This channel does not allow searching This channel is age-restricted and currently cannot be viewed in FreeTube.: This channel is age-restricted and currently cannot be viewed in FreeTube. Channel Tabs: Channel Tabs + View All: View All Videos: Videos: Videos This channel does not currently have any videos: This channel does not currently