you can only join as the call owner when fetching a token

This commit is contained in:
Jon 2021-06-14 17:50:21 +01:00
parent 288748a56c
commit 56d1c92ef8
1 changed files with 5 additions and 3 deletions

View File

@ -47,9 +47,11 @@ export const Intro = ({ room, error, domain, onJoin, fetching = false }) => {
<Field label="Fetch meeting token"> <Field label="Fetch meeting token">
<BooleanInput onChange={(e) => setFetchToken(e.target.checked)} /> <BooleanInput onChange={(e) => setFetchToken(e.target.checked)} />
</Field> </Field>
<Field label="Join as owner"> {fetchToken && (
<BooleanInput onChange={(e) => setOwner(e.target.checked)} /> <Field label="Join as owner">
</Field> <BooleanInput onChange={(e) => setOwner(e.target.checked)} />
</Field>
)}
</CardBody> </CardBody>
<CardFooter divider> <CardFooter divider>
<Button <Button