feat(queue): move shuffle/loop controls into queue drawer, scoped to queue
This commit is contained in:
@@ -33,6 +33,8 @@ import {
|
||||
removeFromQueue,
|
||||
moveInQueue,
|
||||
clearQueue,
|
||||
toggleShuffle,
|
||||
toggleLoop,
|
||||
type QueueEntry,
|
||||
} from '../../store/slices/queue';
|
||||
import { toggleQueue } from '../../store/slices/player';
|
||||
@@ -71,6 +73,22 @@ export function QueuePanel() {
|
||||
<div className="row">
|
||||
<h3>{t('queue.title')}</h3>
|
||||
<div style={{ flex: 1 }} />
|
||||
<button
|
||||
type="button"
|
||||
className={`iconbtn sm${queue.shuffle ? ' on' : ''}`}
|
||||
onClick={() => dispatch(toggleShuffle())}
|
||||
title={t('queue.shuffle')}
|
||||
>
|
||||
<Icon name="shuffle" />
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
className={`iconbtn sm${queue.loop ? ' on' : ''}`}
|
||||
onClick={() => dispatch(toggleLoop())}
|
||||
title={t('queue.loop')}
|
||||
>
|
||||
<Icon name="repeat" />
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
className="iconbtn sm"
|
||||
|
||||
Reference in New Issue
Block a user