mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-17 00:25:23 +03:00
remove video tab if tracked object has no clip
This commit is contained in:
parent
5804a2da92
commit
49590272bb
@ -141,6 +141,11 @@ export default function SearchDetailDialog({
|
|||||||
views.splice(index, 1);
|
views.splice(index, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!search.has_clip) {
|
||||||
|
const index = views.indexOf("video");
|
||||||
|
views.splice(index, 1);
|
||||||
|
}
|
||||||
|
|
||||||
if (search.data.type != "object") {
|
if (search.data.type != "object") {
|
||||||
const index = views.indexOf("object lifecycle");
|
const index = views.indexOf("object lifecycle");
|
||||||
views.splice(index, 1);
|
views.splice(index, 1);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user