feat(frontend): add queue option and enlarge first-level context menu text

The right-click menu now has a plain 'Añadir a la cola' item (appends the track to player.tracks via the new player.addToQueue) alongside the existing playlist submenu, and its first-level text is text-base to match the rest of the menu.
This commit is contained in:
2026-07-16 19:19:08 +02:00
parent 631941f690
commit 63f7253714
2 changed files with 45 additions and 9 deletions
+8
View File
@@ -333,6 +333,14 @@ class PlayerState {
this.#loadCurrent();
}
addToQueue(item: QueueItem) {
if (this.currentId === null) {
this.playQueue([item], 0);
return;
}
this.tracks = [...this.tracks, toTrack(item)];
}
playTrack(id: string | number) {
if (this.currentId === id) {
this.toggle();