feat: add loading indicator to app layout

This commit is contained in:
Rotimi Best
2026-03-11 12:01:26 +01:00
parent 74c87fb72a
commit 509a2dae0b
3 changed files with 59 additions and 2 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
import type { AccountOrg } from '$features/app/types';
import type { MetaTagsProps } from 'svelte-meta-tags';
import { PUBLIC_IS_SELFHOSTED } from '$env/static/public';
import { getOrgSiteInfo } from '$features/app/layout-setup';
import { getBaseMetaTags } from '$lib/utils/functions/metaTags';
import { getOrgSiteInfo } from '$features/app/layout-setup';
export const ssr = PUBLIC_IS_SELFHOSTED === 'true' ? false : true;
export const ssr = true;
interface LoadOutput {
orgSiteName: string;
+5
View File
@@ -65,6 +65,11 @@
}
onMount(() => {
const loadingIndicator = document.getElementById('app-loading-indicator');
if (loadingIndicator) {
loadingIndicator.style.display = 'none';
}
intialAppSetup();
if (data.skipAuth) return;