mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2025-12-10 09:14:55 +00:00
Add a new tab to user page with pushers (#85)
* Add a new tab to user page with pushers * Update pushers `total` and `id`
This commit is contained in:
parent
425c210cfc
commit
f2a1275673
5 changed files with 69 additions and 0 deletions
|
|
@ -117,6 +117,19 @@ const resourceMap = {
|
|||
return json.total;
|
||||
},
|
||||
},
|
||||
pushers: {
|
||||
map: p => ({
|
||||
...p,
|
||||
id: p.pushkey,
|
||||
}),
|
||||
reference: id => ({
|
||||
endpoint: `/_synapse/admin/v1/users/${id}/pushers`,
|
||||
}),
|
||||
data: "pushers",
|
||||
total: json => {
|
||||
return json.total;
|
||||
},
|
||||
},
|
||||
servernotices: {
|
||||
map: n => ({ id: n.event_id }),
|
||||
create: data => ({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue