Do not block deleted rooms from being rejoined by default (UI option), fixes #48

This commit is contained in:
Aine 2024-09-27 19:25:15 +03:00
parent 02bee92806
commit f8fe1166e2
No known key found for this signature in database
GPG key ID: 34969C908CCA2804

View file

@ -16,7 +16,7 @@ const resourceName = "rooms";
const DeleteRoomButton: React.FC<DeleteRoomButtonProps> = (props) => { const DeleteRoomButton: React.FC<DeleteRoomButtonProps> = (props) => {
const translate = useTranslate(); const translate = useTranslate();
const [open, setOpen] = useState(false); const [open, setOpen] = useState(false);
const [block, setBlock] = useState(true); const [block, setBlock] = useState(false);
const notify = useNotify(); const notify = useNotify();
const redirect = useRedirect(); const redirect = useRedirect();
@ -78,7 +78,7 @@ const DeleteRoomButton: React.FC<DeleteRoomButtonProps> = (props) => {
value={block} value={block}
onChange={(event: React.ChangeEvent<HTMLInputElement>) => setBlock(event.target.checked)} onChange={(event: React.ChangeEvent<HTMLInputElement>) => setBlock(event.target.checked)}
label="resources.rooms.action.erase.fields.block" label="resources.rooms.action.erase.fields.block"
defaultValue={true} defaultValue={false}
/> />
</SimpleForm> </SimpleForm>
</DialogContent> </DialogContent>