From 4324ebfdb83e8b1de815fae8ea412a9504a0d739 Mon Sep 17 00:00:00 2001 From: Michael Albert Date: Wed, 7 Oct 2020 21:42:19 +0200 Subject: [PATCH] Add confirmation when deleting rooms Change-Id: I5dce8ebfb7cab988e0e6664c704c04b44a4d2f92 --- src/components/rooms.js | 10 ++++++++++ src/i18n/de.js | 4 ++++ src/i18n/en.js | 4 ++++ 3 files changed, 18 insertions(+) diff --git a/src/components/rooms.js b/src/components/rooms.js index 5cf4369..5602537 100644 --- a/src/components/rooms.js +++ b/src/components/rooms.js @@ -2,6 +2,7 @@ import React, { Fragment } from "react"; import { connect } from "react-redux"; import { BooleanField, + BulkDeleteWithConfirmButton, Datagrid, Filter, List, @@ -181,6 +182,13 @@ export const RoomShow = props => { ); }; + +const RoomBulkActionButtons = props => ( + + + +); + const RoomFilter = ({ ...props }) => { const translate = useTranslate(); return ( @@ -220,6 +228,7 @@ const FilterableRoomList = ({ ...props }) => { const stateEventsFilter = filter && filter.state_events ? true : false; const versionFilter = filter && filter.version ? true : false; const federateableFilter = filter && filter.federatable ? true : false; + const translate = useTranslate(); return ( { pagination={} sort={{ field: "name", order: "ASC" }} filters={} + bulkActionButtons={} >