Skip to content

Commit

Permalink
add urls with has_url
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunkyProgrammer committed Jul 18, 2023
1 parent 89cf671 commit 98e5d09
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/renderer/views/Channel/Channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -654,41 +654,48 @@ export default defineComponent({
this.joined = 0
this.location = null
}

const lowerTabs = channel.tabs.map(tab => tab.toLowerCase())
this.channelTabs = this.supportedChannelTabs.filter(tab => {
return lowerTabs.includes(tab)
})
this.currentTab = this.currentOrFirstTab(this.$route.params.currentTab)
const tabs = ['about']

if (channel.has_videos) {
tabs.push('videos')
this.getChannelVideosLocal()
}

if (!this.hideChannelShorts && channel.has_shorts) {
tabs.push('shorts')
this.getChannelShortsLocal()
}

if (!this.hideLiveStreams && channel.has_live_streams) {
tabs.push('live')
this.getChannelLiveLocal()
}

if (!this.hideChannelPodcasts && channel.has_podcasts) {
tabs.push('podcasts')
this.getChannelPodcastsLocal()
}

if (!this.hideChannelReleases && channel.has_releases) {
tabs.push('releases')
this.getChannelReleasesLocal()
}

if (!this.hideChannelPlaylists && channel.has_playlists) {
tabs.push('playlists')
this.getChannelPlaylistsLocal()
}

if (!this.hideChannelCommunity && channel.has_community) {
tabs.push('community')
this.getCommunityPostsLocal()
}

this.channelTabs = this.supportedChannelTabs.filter(tab => {
return tabs.includes(tab)
})

this.currentTab = this.currentOrFirstTab(this.$route.params.currentTab)
this.showSearchBar = channel.has_search

this.isLoading = false
Expand Down

0 comments on commit 98e5d09

Please sign in to comment.