mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2024-11-08 15:54:51 +00:00
Add creation timestamp and consent version to UserEdit
Add information about the user to UserEdit - creation timestamp - consent version
This commit is contained in:
parent
168e249296
commit
627f3d2917
4 changed files with 19 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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.",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue