Add helper text to deactivate switch of users (#31)

This commit is contained in:
Manuel Stahl 2020-04-06 11:13:20 +02:00
parent 7ef6bc05c6
commit 185d71e5fc
3 changed files with 11 additions and 1 deletions

View File

@ -106,7 +106,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.deactivate"
/>
<ArrayInput source="threepids"> <ArrayInput source="threepids">
<SimpleFormIterator> <SimpleFormIterator>
<SelectInput <SelectInput

View File

@ -35,6 +35,10 @@ export default {
threepids: "3PIDs", threepids: "3PIDs",
address: "Adresse", address: "Adresse",
}, },
helper: {
deactivate:
"Deaktivierte Nutzer können nicht wieder aktiviert werden.",
},
}, },
rooms: { rooms: {
name: "Raum |||| Räume", name: "Raum |||| Räume",

View File

@ -35,6 +35,9 @@ export default {
threepids: "3PIDs", threepids: "3PIDs",
address: "Address", address: "Address",
}, },
helper: {
deactivate: "Deactivated users cannot be reactivated",
},
}, },
rooms: { rooms: {
name: "Room |||| Rooms", name: "Room |||| Rooms",