mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
fix: disable certain playlist controls when search is enabled
This commit is contained in:
parent
4cbbb4035d
commit
a379100c9f
1 changed files with 5 additions and 0 deletions
|
|
@ -135,6 +135,8 @@ export const PlayQueueListControls = ({
|
|||
[handleSearch, tableRef],
|
||||
);
|
||||
|
||||
const hasSearch = !!searchTerm;
|
||||
|
||||
return (
|
||||
<Group
|
||||
justify="space-between"
|
||||
|
|
@ -152,6 +154,7 @@ export const PlayQueueListControls = ({
|
|||
variant="subtle"
|
||||
/>
|
||||
<ActionIcon
|
||||
disabled={hasSearch}
|
||||
icon="mediaPlayNext"
|
||||
iconProps={{ size: 'lg' }}
|
||||
onClick={handleMoveToNext}
|
||||
|
|
@ -159,6 +162,7 @@ export const PlayQueueListControls = ({
|
|||
variant="subtle"
|
||||
/>
|
||||
<ActionIcon
|
||||
disabled={hasSearch}
|
||||
icon="arrowDownToLine"
|
||||
iconProps={{ size: 'lg' }}
|
||||
onClick={handleMoveToBottom}
|
||||
|
|
@ -166,6 +170,7 @@ export const PlayQueueListControls = ({
|
|||
variant="subtle"
|
||||
/>
|
||||
<ActionIcon
|
||||
disabled={hasSearch}
|
||||
icon="arrowUpToLine"
|
||||
iconProps={{ size: 'lg' }}
|
||||
onClick={handleMoveToTop}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue