mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2024-11-24 15:31:26 +00:00
Add erasure status to users (#294)
This commit is contained in:
parent
c9f5360779
commit
fac09cb9bb
5 changed files with 6 additions and 1 deletions
|
@ -13,7 +13,7 @@ This project is built using [react-admin](https://marmelab.com/react-admin/).
|
|||
|
||||
### Supported Synapse
|
||||
|
||||
It needs at least [Synapse](https://github.com/element-hq/synapse) v1.52.0 for all functions to work as expected!
|
||||
It needs at least [Synapse](https://github.com/element-hq/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://element-hq.github.io/synapse/latest/admin_api/version_api.html).
|
||||
|
|
|
@ -119,6 +119,7 @@ export const UserList = (props: ListProps) => (
|
|||
<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" showTime options={DATE_FORMAT} />
|
||||
</Datagrid>
|
||||
</List>
|
||||
|
@ -200,6 +201,7 @@ export const UserEdit = (props: EditProps) => {
|
|||
<SelectInput source="user_type" choices={choices_type} translateChoice={false} resettable />
|
||||
<BooleanInput source="admin" />
|
||||
<BooleanInput 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>
|
||||
|
|
|
@ -105,6 +105,7 @@ const de: SynapseTranslationMessages = {
|
|||
is_guest: "Gast",
|
||||
admin: "Server Administrator",
|
||||
deactivated: "Deaktiviert",
|
||||
erased: "Gelöscht",
|
||||
guests: "Zeige Gäste",
|
||||
show_deactivated: "Zeige deaktivierte Benutzer",
|
||||
user_id: "Suche Benutzer",
|
||||
|
|
|
@ -104,6 +104,7 @@ const en: SynapseTranslationMessages = {
|
|||
is_guest: "Guest",
|
||||
admin: "Server Administrator",
|
||||
deactivated: "Deactivated",
|
||||
erased: "Erased",
|
||||
guests: "Show guests",
|
||||
show_deactivated: "Show deactivated users",
|
||||
user_id: "Search user",
|
||||
|
|
1
src/i18n/index.d.ts
vendored
1
src/i18n/index.d.ts
vendored
|
@ -100,6 +100,7 @@ interface SynapseTranslationMessages extends TranslationMessages {
|
|||
is_guest: string;
|
||||
admin: string;
|
||||
deactivated: string;
|
||||
erased?: string; // TODO: fa, fr, it, zh
|
||||
guests: string;
|
||||
show_deactivated: string;
|
||||
user_id: string;
|
||||
|
|
Loading…
Reference in a new issue