-
- { _t("Don't want to add an existing room?") }
- onCreateRoomClick(cli, space)} kind="link">
- { _t("Create a new room") }
-
-
-
-
{
- // TODO rate limiting
- setBusy(true);
- try {
- await allSettled(Array.from(selectedToAdd).map((room) =>
- SpaceStore.instance.addRoomToSpace(space, room.roomId, calculateRoomVia(room))));
- onFinished(true);
- } catch (e) {
- console.error("Failed to add rooms to space", e);
- setError(_t("Failed to add rooms to space"));
- }
- setBusy(false);
- }}
- >
- { busy ? _t("Adding...") : _t("Add") }
-
+ { footer }