Add creation timestamp and consent version to UserEdit

Add information about the user to UserEdit
- creation timestamp
- consent version
This commit is contained in:
dklimpel 2020-06-16 09:24:49 +02:00 committed by Manuel Stahl
parent 168e249296
commit 627f3d2917
4 changed files with 19 additions and 0 deletions

View File

@ -159,6 +159,19 @@ export const UserEdit = props => (
source="deactivated"
helperText="resources.users.helper.deactivate"
/>
<DateField
source="creation_ts"
showTime
options={{
year: "numeric",
month: "2-digit",
day: "2-digit",
hour: "2-digit",
minute: "2-digit",
second: "2-digit",
}}
/>
<TextField source="consent_version" />
<ArrayInput source="threepids">
<SimpleFormIterator>
<SelectInput

View File

@ -38,6 +38,8 @@ export default {
medium: "Medium",
threepids: "3PIDs",
address: "Adresse",
creation_ts: "Zeitpunkt der Erstellung",
consent_version: "Zugestimmte Bedingungen",
},
helper: {
deactivate: "Deaktivierte Nutzer können nicht wieder aktiviert werden.",

View File

@ -37,6 +37,8 @@ export default {
medium: "Medium",
threepids: "3PIDs",
address: "Address",
creation_ts: "Creation timestamp",
consent_version: "Consent version",
},
helper: {
deactivate: "Deactivated users cannot be reactivated",

View File

@ -23,6 +23,8 @@ const resourceMap = {
is_guest: !!u.is_guest,
admin: !!u.admin,
deactivated: !!u.deactivated,
// need timestamp in milliseconds
creation_ts: u.creation_ts * 1000,
}),
data: "users",
total: (json, from, perPage) => {