Fix queue shift button actions in AudioPlayer to correctly handle play and play next functionality.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user