mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 04:39:06 +00:00
disable dropdown when recording
This commit is contained in:
@@ -43,6 +43,7 @@ const AudioInputsDropdown = (props) => {
|
|||||||
options={ddOptions}
|
options={ddOptions}
|
||||||
onChange={handleDropdownChange}
|
onChange={handleDropdownChange}
|
||||||
value={ddOptions[0]}
|
value={ddOptions[0]}
|
||||||
|
disabled={props.disabled}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -115,7 +116,7 @@ export default function Recorder(props) {
|
|||||||
return (
|
return (
|
||||||
<div className="flex flex-col items-center justify-center max-w-[75vw] w-full">
|
<div className="flex flex-col items-center justify-center max-w-[75vw] w-full">
|
||||||
<div className="flex my-2 mx-auto">
|
<div className="flex my-2 mx-auto">
|
||||||
<AudioInputsDropdown setDeviceId={setDeviceId} />
|
<AudioInputsDropdown setDeviceId={setDeviceId} disabled={isRecording} />
|
||||||
|
|
||||||
<button
|
<button
|
||||||
onClick={handleRecClick}
|
onClick={handleRecClick}
|
||||||
|
|||||||
Reference in New Issue
Block a user