Do not block deleted rooms from being rejoined by default (UI option), fixes #48
This commit is contained in:
parent
02bee92806
commit
f8fe1166e2
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user