From e746956bab36237889a26d697c4b0b70d1883502 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 15 Oct 2024 13:34:25 -0600 Subject: [PATCH] Handle Frigate+ submitted case --- .../components/card/SearchThumbnailFooter.tsx | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/web/src/components/card/SearchThumbnailFooter.tsx b/web/src/components/card/SearchThumbnailFooter.tsx index 7947b7642..9037fcf25 100644 --- a/web/src/components/card/SearchThumbnailFooter.tsx +++ b/web/src/components/card/SearchThumbnailFooter.tsx @@ -24,7 +24,13 @@ import { AlertDialogHeader, AlertDialogTitle, } from "../ui/alert-dialog"; -import { LuCamera, LuDownload, LuMoreVertical, LuTrash2 } from "react-icons/lu"; +import { + LuCamera, + LuCheck, + LuDownload, + LuMoreVertical, + LuTrash2, +} from "react-icons/lu"; import FrigatePlusIcon from "@/components/icons/FrigatePlusIcon"; import { FrigatePlusDialog } from "../overlay/dialog/FrigatePlusDialog"; import { Event } from "@/types/event"; @@ -109,7 +115,9 @@ export default function SearchThumbnailFooter({ showFrigatePlus ? (searchResult as unknown as Event) : undefined } onClose={() => setShowFrigatePlus(false)} - onEventUploaded={() => {}} + onEventUploaded={() => { + searchResult.plus_id = "submitted"; + }} />
@@ -125,7 +133,15 @@ export default function SearchThumbnailFooter({
{config?.plus?.enabled && searchResult.has_snapshot && - searchResult.end_time && ( + searchResult.end_time && + (searchResult.plus_id ? ( + + + + + Submitted to Frigate+ + + ) : ( Submit to Frigate+ - )} + ))} {config?.semantic_search?.enabled && (