Merge pull request #6 from daily-demos/dailyjs/basic-call/join-disable

you can only join as the call owner when fetching a token
This commit is contained in:
Jon Taylor 2021-06-15 12:34:13 +01:00 committed by GitHub
commit 0d847fa7e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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">
<BooleanInput onChange={(e) => setFetchToken(e.target.checked)} />
</Field>
<Field label="Join as owner">
<BooleanInput onChange={(e) => setOwner(e.target.checked)} />
</Field>
{fetchToken && (
<Field label="Join as owner">
<BooleanInput onChange={(e) => setOwner(e.target.checked)} />
</Field>
)}
</CardBody>
<CardFooter divider>
<Button