mirror of https://github.com/jetkvm/kvm.git
fix(AudioControlPopover): swap mute button theme and labels for clarity & consistency
This commit is contained in:
parent
b267348084
commit
e27f1cfa59
|
@ -299,8 +299,8 @@ export default function AudioControlPopover({ microphone }: AudioControlPopoverP
|
||||||
</div>
|
</div>
|
||||||
<Button
|
<Button
|
||||||
size="SM"
|
size="SM"
|
||||||
theme={isMuted ? "danger" : "primary"}
|
theme={isMuted ? "primary" : "danger"}
|
||||||
text={isMuted ? "Unmute" : "Mute"}
|
text={isMuted ? "Enable" : "Disable"}
|
||||||
onClick={handleToggleMute}
|
onClick={handleToggleMute}
|
||||||
disabled={isLoading}
|
disabled={isLoading}
|
||||||
/>
|
/>
|
||||||
|
@ -330,9 +330,9 @@ export default function AudioControlPopover({ microphone }: AudioControlPopoverP
|
||||||
size="SM"
|
size="SM"
|
||||||
theme={isMicrophoneActive ? "danger" : "primary"}
|
theme={isMicrophoneActive ? "danger" : "primary"}
|
||||||
text={
|
text={
|
||||||
isStarting ? "Unmuting..." :
|
isStarting ? "Enabling..." :
|
||||||
isStopping ? "Muting..." :
|
isStopping ? "Disabling..." :
|
||||||
isMicrophoneActive ? "Mute" : "Unmute"
|
isMicrophoneActive ? "Disable" : "Enable"
|
||||||
}
|
}
|
||||||
onClick={handleToggleMicrophoneMute}
|
onClick={handleToggleMicrophoneMute}
|
||||||
disabled={isStarting || isStopping || isToggling}
|
disabled={isStarting || isStopping || isToggling}
|
||||||
|
|
Loading…
Reference in New Issue