modify queue page to use the correct track component

This commit is contained in:
geoffrey45
2022-08-31 12:20:35 +03:00
parent 8eb9f22bf0
commit 6454f38cc3
4 changed files with 35 additions and 28 deletions
+3 -3
View File
@@ -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 || "",