mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Added loader for indexing
refs https://github.com/TryGhost/Team/issues/1665 - adds loading indicator while search index is setup from site data
This commit is contained in:
parent
604cde2633
commit
a9b3265d12
1 changed files with 7 additions and 3 deletions
|
@ -148,9 +148,13 @@ function SearchClearIcon() {
|
|||
}
|
||||
|
||||
function Loading() {
|
||||
return (
|
||||
<CircleAnimated className='shrink-0' />
|
||||
);
|
||||
const {indexComplete} = useContext(AppContext);
|
||||
if (!indexComplete) {
|
||||
return (
|
||||
<CircleAnimated className='shrink-0' />
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function CancelButton() {
|
||||
|
|
Loading…
Add table
Reference in a new issue