mirror of
https://github.com/etkecc/synapse-admin.git
synced 2024-11-29 03:49:05 +03:00
Add button to purge rooms to room list (#44)
* Add button to purge rooms to room list Add button (BulkDeleteButton) to delete rooms with no local users: - purge rooms `POST /_synapse/admin/v1/purge_room` (https://github.com/matrix-org/synapse/blob/master/docs/admin_api/purge_room.md) * Bugfix of merge 'master' * Change from purge room to delete room endpoint
This commit is contained in:
parent
8db881a64d
commit
26b8cea6a5
2 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
import React from "react";
|
||||
import React, { Fragment } from "react";
|
||||
import { connect } from "react-redux";
|
||||
import {
|
||||
BooleanField,
|
||||
|
|
|
@ -66,6 +66,11 @@ const resourceMap = {
|
|||
total: json => {
|
||||
return json.total_rooms;
|
||||
},
|
||||
delete: id => ({
|
||||
endpoint: `/_synapse/admin/v1/rooms/${id}/delete`,
|
||||
body: { block: false },
|
||||
method: "POST",
|
||||
}),
|
||||
},
|
||||
devices: {
|
||||
map: d => ({
|
||||
|
|
Loading…
Reference in a new issue