Fix queue shift button actions in AudioPlayer to correctly handle play and play next functionality.

This commit is contained in:
2025-09-24 22:46:55 -04:00
parent e2446cad99
commit c034a0c4ff

View File

@@ -809,14 +809,14 @@ export default function Player({ user }) {
</button>
<button
className="px-2 py-1 rounded bg-yellow-400 text-neutral-900 hover:bg-yellow-500 text-xs shadow-md cursor-pointer font-bold font-sans"
onClick={() => handleQueueShift(rowData.uuid, true, false)}
onClick={() => handleQueueShift(rowData.uuid, false)}
title="Play"
>
Play
</button>
<button
className="px-2 py-1 rounded bg-green-400 text-neutral-900 hover:bg-green-500 text-xs shadow-md cursor-pointer font-bold font-sans"
onClick={() => handleQueueShift(rowData.uuid, false, true)}
onClick={() => handleQueueShift(rowData.uuid, true)}
title="Play Next"
>
Play Next