Skip to content

Commit

Permalink
media access 実行中は role を変更できないようにする
Browse files Browse the repository at this point in the history
  • Loading branch information
tnamao committed Oct 19, 2023
1 parent a4d56b4 commit 3c0b17c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/DevtoolsPane/RoleForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import { TooltipFormLabel } from './TooltipFormLabel';
export const RoleForm: React.FC = () => {
const role = useAppSelector((state) => state.role);
const connectionStatus = useAppSelector((state) => state.soraContents.connectionStatus);
const disabled = isFormDisabled(connectionStatus);
const localMediaStream = useAppSelector((state) => state.soraContents.localMediaStream);
const disabled = localMediaStream !== null || isFormDisabled(connectionStatus);
const dispatch = useAppDispatch();
const onChange = (event: React.ChangeEvent<HTMLSelectElement>): void => {
if (checkFormValue(event.target.value, ROLES)) {
Expand Down

0 comments on commit 3c0b17c

Please sign in to comment.