feat: add loading indicator to app layout
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -65,6 +65,11 @@
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
const loadingIndicator = document.getElementById('app-loading-indicator');
|
||||
if (loadingIndicator) {
|
||||
loadingIndicator.style.display = 'none';
|
||||
}
|
||||
|
||||
intialAppSetup();
|
||||
|
||||
if (data.skipAuth) return;
|
||||
|
||||
Reference in New Issue
Block a user