From 9971b635b81fe3f8621c80a6664eccb3e1fc4bb8 Mon Sep 17 00:00:00 2001 From: Caleb Allen Date: Sat, 28 Feb 2026 14:25:31 -0500 Subject: [PATCH] feat(quick-4): add 'Set as Default Playlist' context menu option - Add 'set-default' case in onPlaylistContextAction handler - Add wa-dropdown-item with star icon in single-select guard block - Option only appears when right-clicking a single playlist --- .../components/playlist-view/playlist-view.ts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/frontend/src/components/playlist-view/playlist-view.ts b/frontend/src/components/playlist-view/playlist-view.ts index d7710ae..5c20fdd 100644 --- a/frontend/src/components/playlist-view/playlist-view.ts +++ b/frontend/src/components/playlist-view/playlist-view.ts @@ -1731,6 +1731,16 @@ export class PlaylistView }, ); break; + case 'set-default': + void this.favCtrl + .setDefaultPlaylist(entry.summary.ID) + .catch((err: unknown) => { + console.error( + 'Failed to set default playlist:', + err, + ); + }); + break; case 'delete': { if (this.selectedPlaylists.size > 1) { const ids = [...this.selectedPlaylists] @@ -2352,6 +2362,18 @@ export class PlaylistView > Rename + + void this.onPlaylistContextAction( + 'set-default', + )} + > + + Set as Default Playlist + ` : nothing}