1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-14 14:20:32 +05:30

Fix playlists in favorites

This commit is contained in:
Arkadiusz Fal 2022-12-11 23:22:38 +01:00
parent d02bb23e57
commit 115f9fea67

View File

@ -106,6 +106,8 @@ struct FavoriteItemView: View {
return navigationStyle == .tab return navigationStyle == .tab
case .channelPlaylist: case .channelPlaylist:
return navigationStyle == .tab return navigationStyle == .tab
case .playlist:
return navigationStyle == .tab
case .subscriptions: case .subscriptions:
return navigationStyle == .tab return navigationStyle == .tab
case .popular: case .popular:
@ -122,6 +124,8 @@ struct FavoriteItemView: View {
ChannelVideosView(channel: .init(id: id, name: name)) ChannelVideosView(channel: .init(id: id, name: name))
case let .channelPlaylist(_, id, title): case let .channelPlaylist(_, id, title):
ChannelPlaylistView(playlist: .init(id: id, title: title)) ChannelPlaylistView(playlist: .init(id: id, title: title))
case let .playlist(id):
ChannelPlaylistView(playlist: .init(id: id, title: label))
case .subscriptions: case .subscriptions:
SubscriptionsView() SubscriptionsView()
case .popular: case .popular: