mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 18:13:31 +00:00
feature: improve add to playlist UX
This commit is contained in:
parent
5ab0eba23e
commit
35b869ee7b
1 changed files with 7 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ export const AddToPlaylistContextModal = ({
|
|||
const { albumId, artistId, genreId, songId } = innerProps;
|
||||
const server = useCurrentServer();
|
||||
const [isLoading, setIsLoading] = useState(false);
|
||||
const [isDropdownOpened, setIsDropdownOpened] = useState(true);
|
||||
|
||||
const addToPlaylistMutation = useAddToPlaylist({});
|
||||
|
||||
|
|
@ -235,7 +236,13 @@ export const AddToPlaylistContextModal = ({
|
|||
})}
|
||||
searchable
|
||||
size="md"
|
||||
dropdownOpened={isDropdownOpened}
|
||||
{...form.getInputProps('playlistId')}
|
||||
onClick={() => setIsDropdownOpened(true)}
|
||||
onChange={(e) => {
|
||||
setIsDropdownOpened(false);
|
||||
form.getInputProps('playlistId').onChange(e);
|
||||
}}
|
||||
/>
|
||||
<Switch
|
||||
label={t('form.addToPlaylist.input', {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue