Ability to add, edit, and delete camera groups in the UI (#10296)

* Add dialog for creating new camera group

* Support adding of camera groups and dynamically updating the config

* Support deleting and edit existing camera groups

* Don't show separator if user has no groups

* Formatting

* fix background
This commit is contained in:
Nicolas Mowen
2024-03-06 18:15:50 -07:00
committed by GitHub
parent 90db27e3c8
commit 3d90f50d84
6 changed files with 282 additions and 38 deletions

View File

@@ -204,9 +204,11 @@ export interface CameraConfig {
};
}
export const GROUP_ICONS = ["car", "cat", "dog", "leaf"] as const;
export type CameraGroupConfig = {
cameras: string[];
icon: string;
icon: (typeof GROUP_ICONS)[number];
order: number;
};