mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-09 08:37:37 +03:00
keep nav buttons visible
nav buttons would be hidden when closing and reopening dialog after selecting the tracking details pane
This commit is contained in:
parent
59fc8449ed
commit
c78e5def55
@ -495,6 +495,15 @@ export default function SearchDetailDialog({
|
|||||||
}
|
}
|
||||||
}, [search]);
|
}, [search]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (!isDesktop || !onPrevious || !onNext) {
|
||||||
|
setShowNavigationButtons(false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
setShowNavigationButtons(isOpen);
|
||||||
|
}, [isOpen, onNext, onPrevious]);
|
||||||
|
|
||||||
// show/hide annotation settings is handled inside TabsWithActions
|
// show/hide annotation settings is handled inside TabsWithActions
|
||||||
|
|
||||||
const searchTabs = useMemo(() => {
|
const searchTabs = useMemo(() => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user