mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-17 16:44:29 +03:00
Hide other submit options
Only allow submits for objects only
This commit is contained in:
parent
78fed002e0
commit
3d0efc4983
@ -128,6 +128,7 @@ export default function SearchResultActions({
|
|||||||
config?.plus?.enabled &&
|
config?.plus?.enabled &&
|
||||||
searchResult.has_snapshot &&
|
searchResult.has_snapshot &&
|
||||||
searchResult.end_time &&
|
searchResult.end_time &&
|
||||||
|
searchResult.data.type == "object" &&
|
||||||
!searchResult.plus_id && (
|
!searchResult.plus_id && (
|
||||||
<MenuItem aria-label="Submit to Frigate Plus" onClick={showSnapshot}>
|
<MenuItem aria-label="Submit to Frigate Plus" onClick={showSnapshot}>
|
||||||
<FrigatePlusIcon className="mr-2 size-4 cursor-pointer text-primary" />
|
<FrigatePlusIcon className="mr-2 size-4 cursor-pointer text-primary" />
|
||||||
@ -197,6 +198,7 @@ export default function SearchResultActions({
|
|||||||
config?.plus?.enabled &&
|
config?.plus?.enabled &&
|
||||||
searchResult.has_snapshot &&
|
searchResult.has_snapshot &&
|
||||||
searchResult.end_time &&
|
searchResult.end_time &&
|
||||||
|
searchResult.data.type == "object" &&
|
||||||
!searchResult.plus_id && (
|
!searchResult.plus_id && (
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger>
|
<TooltipTrigger>
|
||||||
|
|||||||
@ -379,6 +379,7 @@ function EventItem({
|
|||||||
|
|
||||||
{event.has_snapshot &&
|
{event.has_snapshot &&
|
||||||
event.plus_id == undefined &&
|
event.plus_id == undefined &&
|
||||||
|
event.data.type == "object" &&
|
||||||
config?.plus.enabled && (
|
config?.plus.enabled && (
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
<TooltipTrigger>
|
<TooltipTrigger>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user