mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-26 02:07:18 +01:00
Complete User CRUD
This commit is contained in:
parent
1c04a19910
commit
2ab0cecd48
11 changed files with 201 additions and 45 deletions
21
ui/src/user/UserCreate.js
Normal file
21
ui/src/user/UserCreate.js
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import React from 'react'
|
||||
import {
|
||||
BooleanInput,
|
||||
Create,
|
||||
TextInput,
|
||||
PasswordInput,
|
||||
required,
|
||||
SimpleForm
|
||||
} from 'react-admin'
|
||||
|
||||
const UserCreate = (props) => (
|
||||
<Create {...props}>
|
||||
<SimpleForm redirect="list">
|
||||
<TextInput source="name" validate={[required()]} />
|
||||
<PasswordInput source="password" validate={[required()]} />
|
||||
<BooleanInput source="isAdmin" initialValue={false} />
|
||||
</SimpleForm>
|
||||
</Create>
|
||||
)
|
||||
|
||||
export default UserCreate
|
||||
Loading…
Add table
Add a link
Reference in a new issue