mirror of
https://github.com/etkecc/synapse-admin.git
synced 2024-11-21 23:35:22 +03:00
Do not block deleted rooms from being rejoined by default (UI option), fixes #48
This commit is contained in:
parent
02bee92806
commit
f8fe1166e2
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ const resourceName = "rooms";
|
|||
const DeleteRoomButton: React.FC<DeleteRoomButtonProps> = (props) => {
|
||||
const translate = useTranslate();
|
||||
const [open, setOpen] = useState(false);
|
||||
const [block, setBlock] = useState(true);
|
||||
const [block, setBlock] = useState(false);
|
||||
|
||||
const notify = useNotify();
|
||||
const redirect = useRedirect();
|
||||
|
@ -78,7 +78,7 @@ const DeleteRoomButton: React.FC<DeleteRoomButtonProps> = (props) => {
|
|||
value={block}
|
||||
onChange={(event: React.ChangeEvent<HTMLInputElement>) => setBlock(event.target.checked)}
|
||||
label="resources.rooms.action.erase.fields.block"
|
||||
defaultValue={true}
|
||||
defaultValue={false}
|
||||
/>
|
||||
</SimpleForm>
|
||||
</DialogContent>
|
||||
|
|
Loading…
Reference in a new issue