Add erasure status to users (#294)

This commit is contained in:
Dirk Klimpel
2024-05-07 13:01:24 +02:00
committed by GitHub
parent c9f5360779
commit fac09cb9bb
5 changed files with 6 additions and 1 deletions

View File

@@ -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>