mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2024-11-09 16:24:51 +00:00
Move Toolbar's alwaysEnableSaveButton into SaveButton
https: //marmelab.com/react-admin/Upgrade.html#toolbars-alwaysenablesavebutton-prop-has-been-removed Change-Id: I6c8693d4f55bfabdeaa677bd294d8663b7f14d69
This commit is contained in:
parent
82578c6570
commit
2c769c309e
1 changed files with 10 additions and 1 deletions
|
@ -12,6 +12,7 @@ import {
|
||||||
NumberField,
|
NumberField,
|
||||||
NumberInput,
|
NumberInput,
|
||||||
regex,
|
regex,
|
||||||
|
SaveButton,
|
||||||
SimpleForm,
|
SimpleForm,
|
||||||
TextInput,
|
TextInput,
|
||||||
TextField,
|
TextField,
|
||||||
|
@ -80,7 +81,15 @@ export const RegistrationTokenList = props => (
|
||||||
|
|
||||||
export const RegistrationTokenCreate = props => (
|
export const RegistrationTokenCreate = props => (
|
||||||
<Create {...props}>
|
<Create {...props}>
|
||||||
<SimpleForm redirect="list" toolbar={<Toolbar alwaysEnableSaveButton />}>
|
<SimpleForm
|
||||||
|
redirect="list"
|
||||||
|
toolbar={
|
||||||
|
<Toolbar>
|
||||||
|
{/* It is possible to create tokens per default without input. */}
|
||||||
|
<SaveButton alwaysEnable />
|
||||||
|
</Toolbar>
|
||||||
|
}
|
||||||
|
>
|
||||||
<TextInput
|
<TextInput
|
||||||
source="token"
|
source="token"
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
|
|
Loading…
Reference in a new issue