feat(playlists): YouTube-mirrored playlists in the UI (read-only) + sync button
Show YouTube-sourced playlists with a YouTube icon; they're read-only for now (no rename/delete/reorder/remove, excluded from the add-to-playlist popover) with a 'synced from YouTube' note — editing comes with the write-back phase. Add a 'Sync from YouTube' button in the Playlists rail (api.syncYoutubePlaylists) with a result toast. Trilingual strings.
This commit is contained in:
parent
240b6fb611
commit
12339009b5
6 changed files with 92 additions and 23 deletions
|
|
@ -118,7 +118,9 @@ export default function AddToPlaylist({
|
|||
}
|
||||
}
|
||||
|
||||
const lists = membership.data ?? [];
|
||||
// YouTube-mirrored playlists are read-only until the write-back phase, so they can't be
|
||||
// added to here yet.
|
||||
const lists = (membership.data ?? []).filter((pl) => pl.source !== "youtube");
|
||||
|
||||
return (
|
||||
<>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue