mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-18 17:14:26 +03:00
conditionally show save button
This commit is contained in:
parent
a0d78c5e56
commit
ad57f601bf
@ -543,13 +543,16 @@ function ObjectDetailsTab({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<Button
|
{(config?.cameras[search.camera].genai.enabled && search.end_time) ||
|
||||||
variant="select"
|
(!config?.cameras[search.camera].genai.enabled && (
|
||||||
aria-label="Save"
|
<Button
|
||||||
onClick={updateDescription}
|
variant="select"
|
||||||
>
|
aria-label="Save"
|
||||||
Save
|
onClick={updateDescription}
|
||||||
</Button>
|
>
|
||||||
|
Save
|
||||||
|
</Button>
|
||||||
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user