Add separate flag for progress indicators.

This commit is contained in:
Dermot Duffy
2022-10-05 22:02:33 -07:00
parent cae49e6dce
commit 65cf4cf22d
4 changed files with 28 additions and 7 deletions
+17 -5
View File
@@ -206,7 +206,7 @@ const FRIGATE_CARD_GENERAL_ACTIONS = [
'menu_toggle',
'diagnostics',
'recording',
'recordings'
'recordings',
] as const;
const FRIGATE_CARD_ACTIONS = [
...FRIGATE_CARD_GENERAL_ACTIONS,
@@ -1208,11 +1208,23 @@ export type LiveOverrides = z.infer<typeof liveOverridesSchema>;
const performanceConfigDefault = {
profile: 'high' as const,
}
features: {
animated_progress_indicator: true,
},
};
const performanceConfigSchema = z.object({
profile: z.enum(['low', 'high'])
}).default(performanceConfigDefault);
const performanceConfigSchema = z
.object({
profile: z.enum(['low', 'high']),
features: z
.object({
animated_progress_indicator: z
.boolean()
.default(performanceConfigDefault.features.animated_progress_indicator),
})
.default(performanceConfigDefault.features),
})
.default(performanceConfigDefault);
export type PerformanceConfig = z.infer<typeof performanceConfigSchema>;
export interface CardWideConfig {