mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Favorited playlists belong to account
This commit is contained in:
@@ -102,11 +102,12 @@ struct EditFavorites: View {
|
||||
}
|
||||
|
||||
func label(_ item: FavoriteItem) -> String {
|
||||
if case let .playlist(id) = item.section {
|
||||
switch item.section {
|
||||
case let .playlist(_, id):
|
||||
return playlistsModel.find(id: id)?.title ?? "Playlist".localized()
|
||||
default:
|
||||
return item.section.label.localized()
|
||||
}
|
||||
|
||||
return item.section.label.localized()
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user