feat: Add UI optional UI locking when microphone is hot (#2484)
This commit is contained in:
committed by
dermotduffy
parent
9a763db1f3
commit
be7e7d79dc
@@ -3,6 +3,7 @@ import { MENU_PRIORITY_DEFAULT, MENU_PRIORITY_MAX } from '../../../common/const'
|
||||
|
||||
export const menuBaseSchema = z.object({
|
||||
enabled: z.boolean().default(true).optional(),
|
||||
inert: z.boolean().optional(),
|
||||
priority: z
|
||||
.number()
|
||||
.min(0)
|
||||
|
||||
@@ -26,6 +26,7 @@ const microphoneConfigDefault = {
|
||||
auto_mute: [],
|
||||
auto_unmute: [],
|
||||
disconnect_seconds: 90,
|
||||
lock: true,
|
||||
mute_after_microphone_mute_seconds: 60,
|
||||
};
|
||||
|
||||
@@ -38,6 +39,7 @@ const microphoneConfigSchema = z
|
||||
.number()
|
||||
.min(0)
|
||||
.default(microphoneConfigDefault.disconnect_seconds),
|
||||
lock: z.boolean().default(microphoneConfigDefault.lock),
|
||||
mute_after_microphone_mute_seconds: z
|
||||
.number()
|
||||
.min(0)
|
||||
|
||||
Reference in New Issue
Block a user