mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 15:45:27 +03:00
only show dropdown when event has snapshot
This commit is contained in:
parent
e9e2996428
commit
7900243fdc
@ -425,6 +425,7 @@ function ObjectDetailsTab({
|
|||||||
>
|
>
|
||||||
Regenerate
|
Regenerate
|
||||||
</Button>
|
</Button>
|
||||||
|
{search.has_snapshot && (
|
||||||
<DropdownMenu>
|
<DropdownMenu>
|
||||||
<DropdownMenuTrigger asChild>
|
<DropdownMenuTrigger asChild>
|
||||||
<Button className="rounded-l-none border-l-0 px-2">
|
<Button className="rounded-l-none border-l-0 px-2">
|
||||||
@ -435,15 +436,16 @@ function ObjectDetailsTab({
|
|||||||
<DropdownMenuItem
|
<DropdownMenuItem
|
||||||
onClick={() => regenerateDescription("snapshot")}
|
onClick={() => regenerateDescription("snapshot")}
|
||||||
>
|
>
|
||||||
Regenerate With Snapshot
|
Regenerate from Snapshot
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
<DropdownMenuItem
|
<DropdownMenuItem
|
||||||
onClick={() => regenerateDescription("thumbnails")}
|
onClick={() => regenerateDescription("thumbnails")}
|
||||||
>
|
>
|
||||||
Regenerate With Thumbnails
|
Regenerate from Thumbnails
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
</DropdownMenuContent>
|
</DropdownMenuContent>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<Button variant="select" onClick={updateDescription}>
|
<Button variant="select" onClick={updateDescription}>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user