mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 19:01:40 +00:00
Fix playlist form
- Invalid initial state and definition for public playlist
This commit is contained in:
parent
6d092d9ebc
commit
9c1a2a4a8d
4 changed files with 16 additions and 58 deletions
|
|
@ -88,13 +88,13 @@ export const UpdatePlaylistForm = ({ users, query, body, onCancel }: UpdatePlayl
|
|||
/>
|
||||
<Select
|
||||
data={userList || []}
|
||||
{...form.getInputProps('ndParams.ownerId')}
|
||||
{...form.getInputProps('_custom.navidrome.ownerId')}
|
||||
label="Owner"
|
||||
/>
|
||||
{isPublicDisplayed && (
|
||||
<Switch
|
||||
label="Is Public?"
|
||||
{...form.getInputProps('public')}
|
||||
{...form.getInputProps('_custom.navidrome.public', { type: 'checkbox' })}
|
||||
/>
|
||||
)}
|
||||
<Group position="right">
|
||||
|
|
@ -138,6 +138,8 @@ export const openUpdatePlaylistModal = async (args: {
|
|||
queryKey: queryKeys.users.list(server?.id || '', query),
|
||||
});
|
||||
|
||||
console.log('playlist', playlist);
|
||||
|
||||
openModal({
|
||||
children: (
|
||||
<UpdatePlaylistForm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue