Add helper text to deactivate switch of users

This commit is contained in:
dklimpel 2020-04-04 19:44:14 +02:00
parent 7eeb60539f
commit 915da545e8
3 changed files with 11 additions and 1 deletions

View File

@ -84,7 +84,10 @@ export const UserEdit = props => (
<TextInput source="displayname" /> <TextInput source="displayname" />
<PasswordInput source="password" autoComplete="new-password" /> <PasswordInput source="password" autoComplete="new-password" />
<BooleanInput source="admin" /> <BooleanInput source="admin" />
<BooleanInput source="deactivated" /> <BooleanInput
source="deactivated"
helperText="resources.users.helper.deactivated"
/>
</SimpleForm> </SimpleForm>
</Edit> </Edit>
); );

View File

@ -28,6 +28,10 @@ export default {
displayname: "Anzeigename", displayname: "Anzeigename",
password: "Passwort", password: "Passwort",
}, },
helper: {
deactivated:
"Deaktivierte Nutzer können nicht wieder aktiviert werden.",
},
}, },
rooms: { rooms: {
name: "Raum |||| Räume", name: "Raum |||| Räume",

View File

@ -28,6 +28,9 @@ export default {
displayname: "Displayname", displayname: "Displayname",
password: "Password", password: "Password",
}, },
helper: {
deactivated: "Deactivated users cannot be reactivated",
},
}, },
rooms: { rooms: {
name: "Room |||| Rooms", name: "Room |||| Rooms",