Add erasure status to users

This commit is contained in:
dklimpel 2022-10-24 09:28:45 +02:00
parent 67066a1ba7
commit 433ad8d1d7
4 changed files with 5 additions and 1 deletions

View File

@ -9,7 +9,7 @@ This project is built using [react-admin](https://marmelab.com/react-admin/).
### Supported Synapse
It needs at least [Synapse](https://github.com/matrix-org/synapse) v1.42.0 for all functions to work as expected!
It needs at least [Synapse](https://github.com/matrix-org/synapse) v1.71.0 for all functions to work as expected!
You get your server version with the request `/_synapse/admin/v1/server_version`.
See also [Synapse version API](https://matrix-org.github.io/synapse/develop/admin_api/version_api.html).

View File

@ -185,6 +185,7 @@ export const UserList = props => {
<BooleanField source="is_guest" />
<BooleanField source="admin" />
<BooleanField source="deactivated" />
<BooleanField source="erased" sortable={false} />
<DateField
source="creation_ts"
label="resources.users.fields.creation_ts_ms"
@ -338,6 +339,7 @@ export const UserEdit = props => {
source="deactivated"
helperText="resources.users.helper.deactivate"
/>
<BooleanInput source="erased" disabled />
<DateField source="creation_ts_ms" showTime options={date_format} />
<TextField source="consent_version" />
</FormTab>

View File

@ -108,6 +108,7 @@ const de = {
is_guest: "Gast",
admin: "Server Administrator",
deactivated: "Deaktiviert",
erased: "Gelöscht",
guests: "Zeige Gäste",
show_deactivated: "Zeige deaktivierte Benutzer",
user_id: "Suche Benutzer",

View File

@ -107,6 +107,7 @@ const en = {
is_guest: "Guest",
admin: "Server Administrator",
deactivated: "Deactivated",
erased: "Erased",
guests: "Show guests",
show_deactivated: "Show deactivated users",
user_id: "Search user",