isIndexing as a svelte store

This commit is contained in:
Simon Cambier
2022-10-27 19:30:52 +02:00
parent 22ff4eec03
commit 573f3fa31b
2 changed files with 5 additions and 3 deletions

View File

@@ -24,6 +24,7 @@
let searchQuery: string | undefined
let resultNotes: ResultNote[] = []
let query: Query
let { isIndexing } = SearchEngine
$: selectedNote = resultNotes[selectedIndex]
$: searchQuery = searchQuery ?? previousQuery
@@ -210,7 +211,7 @@
{/if}
</InputSearch>
{#if SearchEngine.isIndexing}
{#if $isIndexing}
<div style="text-align: center; color: var(--text-accent); margin-top: 10px">
⏳ Omnisearch indexing is currently in progress
</div>