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" />
<PasswordInput source="password" autoComplete="new-password" />
<BooleanInput source="admin" />
<BooleanInput source="deactivated" />
<BooleanInput
source="deactivated"
helperText="resources.users.helper.deactivate"
/>
<ArrayInput source="threepids">
<SimpleFormIterator>
<SelectInput

View file

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

View file

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