0
Fork 0
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:
Rishabh 2022-07-08 10:58:56 +02:00
parent 604cde2633
commit a9b3265d12

View file

@ -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() {