mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 15:45:27 +03:00
Handle Frigate+ submitted case
This commit is contained in:
parent
b75efcbca2
commit
e746956bab
@ -24,7 +24,13 @@ import {
|
|||||||
AlertDialogHeader,
|
AlertDialogHeader,
|
||||||
AlertDialogTitle,
|
AlertDialogTitle,
|
||||||
} from "../ui/alert-dialog";
|
} 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 FrigatePlusIcon from "@/components/icons/FrigatePlusIcon";
|
||||||
import { FrigatePlusDialog } from "../overlay/dialog/FrigatePlusDialog";
|
import { FrigatePlusDialog } from "../overlay/dialog/FrigatePlusDialog";
|
||||||
import { Event } from "@/types/event";
|
import { Event } from "@/types/event";
|
||||||
@ -109,7 +115,9 @@ export default function SearchThumbnailFooter({
|
|||||||
showFrigatePlus ? (searchResult as unknown as Event) : undefined
|
showFrigatePlus ? (searchResult as unknown as Event) : undefined
|
||||||
}
|
}
|
||||||
onClose={() => setShowFrigatePlus(false)}
|
onClose={() => setShowFrigatePlus(false)}
|
||||||
onEventUploaded={() => {}}
|
onEventUploaded={() => {
|
||||||
|
searchResult.plus_id = "submitted";
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className="flex flex-col items-start text-xs">
|
<div className="flex flex-col items-start text-xs">
|
||||||
@ -125,7 +133,15 @@ export default function SearchThumbnailFooter({
|
|||||||
<div className="flex flex-row items-center justify-end gap-8 md:gap-4">
|
<div className="flex flex-row items-center justify-end gap-8 md:gap-4">
|
||||||
{config?.plus?.enabled &&
|
{config?.plus?.enabled &&
|
||||||
searchResult.has_snapshot &&
|
searchResult.has_snapshot &&
|
||||||
searchResult.end_time && (
|
searchResult.end_time &&
|
||||||
|
(searchResult.plus_id ? (
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger>
|
||||||
|
<LuCheck className="size-5 cursor-pointer text-primary text-success" />
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent>Submitted to Frigate+</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
|
) : (
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger>
|
<TooltipTrigger>
|
||||||
<FrigatePlusIcon
|
<FrigatePlusIcon
|
||||||
@ -135,7 +151,7 @@ export default function SearchThumbnailFooter({
|
|||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
<TooltipContent>Submit to Frigate+</TooltipContent>
|
<TooltipContent>Submit to Frigate+</TooltipContent>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
)}
|
))}
|
||||||
|
|
||||||
{config?.semantic_search?.enabled && (
|
{config?.semantic_search?.enabled && (
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user