mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-17 08:35:21 +03:00
clarify
This commit is contained in:
parent
a6f15e1d78
commit
8124209ba3
@ -399,9 +399,9 @@ export default function SearchView({
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{(!isLoading || uniqueResults?.length == 0) &&
|
{((isLoading && uniqueResults?.length == 0) || // show on initial load
|
||||||
isValidating &&
|
(isValidating && !isLoading)) && // or revalidation
|
||||||
(searchTerm ||
|
(searchTerm || // or change of filter/search term
|
||||||
(searchFilter && Object.keys(searchFilter).length !== 0)) && (
|
(searchFilter && Object.keys(searchFilter).length !== 0)) && (
|
||||||
<ActivityIndicator className="absolute left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2 rounded-2xl bg-background/80 p-3 dark:bg-background/50" />
|
<ActivityIndicator className="absolute left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2 rounded-2xl bg-background/80 p-3 dark:bg-background/50" />
|
||||||
)}
|
)}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user