mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-02-05 00:15:51 +01:00
Tracked object details pane bugfix (#15736)
* restore save button in tracked object details pane * conditionally show save button
This commit is contained in:
parent
322b847356
commit
a1ce9aacf2
@ -505,7 +505,6 @@ function ObjectDetailsTab({
|
|||||||
|
|
||||||
<div className="flex w-full flex-row justify-end gap-2">
|
<div className="flex w-full flex-row justify-end gap-2">
|
||||||
{config?.cameras[search.camera].genai.enabled && search.end_time && (
|
{config?.cameras[search.camera].genai.enabled && search.end_time && (
|
||||||
<>
|
|
||||||
<div className="flex items-start">
|
<div className="flex items-start">
|
||||||
<Button
|
<Button
|
||||||
className="rounded-r-none border-r-0"
|
className="rounded-r-none border-r-0"
|
||||||
@ -543,7 +542,9 @@ function ObjectDetailsTab({
|
|||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
{(config?.cameras[search.camera].genai.enabled && search.end_time) ||
|
||||||
|
(!config?.cameras[search.camera].genai.enabled && (
|
||||||
<Button
|
<Button
|
||||||
variant="select"
|
variant="select"
|
||||||
aria-label="Save"
|
aria-label="Save"
|
||||||
@ -551,8 +552,7 @@ function ObjectDetailsTab({
|
|||||||
>
|
>
|
||||||
Save
|
Save
|
||||||
</Button>
|
</Button>
|
||||||
</>
|
))}
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user