mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-14 15:15:22 +03:00
Fix loading indicator and explore view when entering a search term
This commit is contained in:
parent
d5acd11164
commit
774db48701
@ -243,8 +243,8 @@ export default function SearchView({
|
|||||||
|
|
||||||
{uniqueResults?.length == 0 &&
|
{uniqueResults?.length == 0 &&
|
||||||
isLoading &&
|
isLoading &&
|
||||||
searchFilter &&
|
(search ||
|
||||||
Object.keys(searchFilter).length !== 0 && (
|
(searchFilter && Object.keys(searchFilter).length !== 0)) && (
|
||||||
<ActivityIndicator className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2" />
|
<ActivityIndicator className="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2" />
|
||||||
)}
|
)}
|
||||||
|
|
||||||
@ -319,7 +319,7 @@ export default function SearchView({
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{searchFilter && Object.keys(searchFilter).length === 0 && (
|
{searchFilter && Object.keys(searchFilter).length === 0 && !search && (
|
||||||
<div className="scrollbar-container flex size-full flex-col overflow-y-auto">
|
<div className="scrollbar-container flex size-full flex-col overflow-y-auto">
|
||||||
<ExploreView onSelectSearch={onSelectSearch} />
|
<ExploreView onSelectSearch={onSelectSearch} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user