Show loading in resolver query

This commit is contained in:
Alexis Sellier
2021-06-09 20:44:20 +02:00
parent 08bf1e8dbb
commit e7aa71edd1
+4 -1
View File
@@ -5,6 +5,7 @@
import type { Config } from '@app/config';
import * as utils from '@app/utils';
import Error from '@app/Error.svelte';
import Loading from '@app/Loading.svelte';
export let config: Config;
export let query: string | null;
@@ -40,10 +41,12 @@
});
</script>
<main>
<main class="centered">
{#if error}
<Error on:close={() => navigate('/')}>
Invalid query string “{query}”
</Error>
{:else}
<Loading center />
{/if}
</main>