mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
modify queue page to use the correct track component
This commit is contained in:
@@ -122,11 +122,11 @@ function updateQueue(track: Track) {
|
||||
);
|
||||
|
||||
switch (routename) {
|
||||
case "FolderView":
|
||||
case Routes.folder:
|
||||
queue.playFromFolder(props.path || "", props.tracks);
|
||||
queue.play(index);
|
||||
break;
|
||||
case "AlbumView":
|
||||
case Routes.album:
|
||||
const tindex = album.tracks.findIndex((t) => t.trackid === track.trackid);
|
||||
|
||||
queue.playFromAlbum(
|
||||
@@ -137,7 +137,7 @@ function updateQueue(track: Track) {
|
||||
);
|
||||
queue.play(tindex);
|
||||
break;
|
||||
case "PlaylistView":
|
||||
case Routes.playlist:
|
||||
queue.playFromPlaylist(
|
||||
props.pname || "",
|
||||
props.playlistid || "",
|
||||
|
||||
Reference in New Issue
Block a user