forked from Github/frigate
UI Fixes (#11742)
* Allow deleting failed in progress exports * Fix comparison and preview retrieval * Fix stretching of event cards * Reset edit state when group changes * Allow specifying group
This commit is contained in:
@@ -91,8 +91,16 @@ export default function DraggableGridLayout({
|
||||
);
|
||||
}, [config]);
|
||||
|
||||
// editing
|
||||
|
||||
const [editGroup, setEditGroup] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
setEditGroup(false);
|
||||
}, [cameraGroup]);
|
||||
|
||||
// camera state
|
||||
|
||||
const [currentCameras, setCurrentCameras] = useState<CameraConfig[]>();
|
||||
const [currentIncludeBirdseye, setCurrentIncludeBirdseye] =
|
||||
useState<boolean>();
|
||||
|
||||
@@ -224,7 +224,13 @@ export default function LiveDashboardView({
|
||||
<TooltipProvider>
|
||||
<div className="flex items-center gap-2 px-1">
|
||||
{events.map((event) => {
|
||||
return <AnimatedEventCard key={event.id} event={event} />;
|
||||
return (
|
||||
<AnimatedEventCard
|
||||
key={event.id}
|
||||
event={event}
|
||||
selectedGroup={cameraGroup}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</TooltipProvider>
|
||||
|
||||
Reference in New Issue
Block a user