disables button if current mic selected

This commit is contained in:
Ben Allen 2020-03-28 02:29:10 +00:00
parent b8d4e02d4e
commit da749ad2eb

View file

@ -320,7 +320,7 @@ function MicControl() {
<div className="sp-col" style={{ height: "48%", overflowY: "visible" }}> <div className="sp-col" style={{ height: "48%", overflowY: "visible" }}>
<h2>Microphone</h2> <h2>Microphone</h2>
<button <button
disabled={state.open} disabled={state.id == micSource}
onClick={() => dispatch(MixerState.openMicrophone(micSource))} onClick={() => dispatch(MixerState.openMicrophone(micSource))}
> >
Open Open