mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2025-12-10 09:14:55 +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
|
|
@ -314,10 +314,13 @@ const dataProvider = {
|
|||
getManyReference: (resource, params) => {
|
||||
console.log("getManyReference " + resource);
|
||||
const { page, perPage } = params.pagination;
|
||||
const { field, order } = params.sort;
|
||||
const from = (page - 1) * perPage;
|
||||
const query = {
|
||||
from: from,
|
||||
limit: perPage,
|
||||
order_by: field,
|
||||
dir: getSearchOrder(order),
|
||||
};
|
||||
|
||||
const homeserver = localStorage.getItem("base_url");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue