mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2024-11-26 00:03:17 +00: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 { connect } from "react-redux";
|
||||||
import {
|
import {
|
||||||
BooleanField,
|
BooleanField,
|
||||||
|
|
|
@ -66,6 +66,11 @@ const resourceMap = {
|
||||||
total: json => {
|
total: json => {
|
||||||
return json.total_rooms;
|
return json.total_rooms;
|
||||||
},
|
},
|
||||||
|
delete: id => ({
|
||||||
|
endpoint: `/_synapse/admin/v1/rooms/${id}/delete`,
|
||||||
|
body: { block: false },
|
||||||
|
method: "POST",
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
devices: {
|
devices: {
|
||||||
map: d => ({
|
map: d => ({
|
||||||
|
|
Loading…
Reference in a new issue