diff --git a/src/lib/components/organisms/NavBar.svelte b/src/lib/components/organisms/NavBar.svelte index b5205f3..004fb91 100644 --- a/src/lib/components/organisms/NavBar.svelte +++ b/src/lib/components/organisms/NavBar.svelte @@ -4,13 +4,23 @@ import api from '$api'; -{#await api.general.ping() then apiUp} - {#if !apiUp} - - The API is currently unresponsive and some services may not work correctly. - {#await api.general.getAbout() then data} - Check the for updates. - {/await} - - {/if} -{/await} + +{#snippet apiDownBanner()} + + The API is currently unresponsive and some services may not work correctly. + {#await api.general.getAbout() then data} + Check the for updates. + {/await} + +{/snippet} + +