mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2025-12-10 03:34:56 +00:00
Enable sorting in tab of users' media (#138)
This commit is contained in:
parent
57c41cc069
commit
41ce58bac8
3 changed files with 11 additions and 9 deletions
|
|
@ -420,6 +420,7 @@ export const UserEdit = props => {
|
|||
addLabel={false}
|
||||
pagination={<UserPagination />}
|
||||
perPage={50}
|
||||
sort={{ field: "created_ts", order: "DESC" }}
|
||||
>
|
||||
<Datagrid style={{ width: "100%" }}>
|
||||
<DateField
|
||||
|
|
@ -433,7 +434,6 @@ export const UserEdit = props => {
|
|||
minute: "2-digit",
|
||||
second: "2-digit",
|
||||
}}
|
||||
sortable={false}
|
||||
/>
|
||||
<DateField
|
||||
source="last_access_ts"
|
||||
|
|
@ -446,14 +446,13 @@ export const UserEdit = props => {
|
|||
minute: "2-digit",
|
||||
second: "2-digit",
|
||||
}}
|
||||
sortable={false}
|
||||
/>
|
||||
<TextField source="media_id" sortable={false} />
|
||||
<NumberField source="media_length" sortable={false} />
|
||||
<TextField source="media_type" sortable={false} />
|
||||
<TextField source="upload_name" sortable={false} />
|
||||
<TextField source="quarantined_by" sortable={false} />
|
||||
<BooleanField source="safe_from_quarantine" sortable={false} />
|
||||
<TextField source="media_id" />
|
||||
<NumberField source="media_length" />
|
||||
<TextField source="media_type" />
|
||||
<TextField source="upload_name" />
|
||||
<TextField source="quarantined_by" />
|
||||
<BooleanField source="safe_from_quarantine" />
|
||||
<DeleteButton mutationMode="pessimistic" redirect={false} />
|
||||
</Datagrid>
|
||||
</ReferenceManyField>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue