Skip loading screen
This commit is contained in:
parent
7244b53622
commit
41efc46236
@ -3,7 +3,10 @@
|
|||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<Sidebar {userData} />
|
<Sidebar {userData} />
|
||||||
<div class="super-container">
|
<div class="super-container">
|
||||||
|
<!-- TODO: Make this better :) -->
|
||||||
|
{#if currentRoute.component !== Index}
|
||||||
<LoadingScreen/>
|
<LoadingScreen/>
|
||||||
|
{/if}
|
||||||
<NotifyModal/>
|
<NotifyModal/>
|
||||||
<div class="content-container" class:hide={$loadingScreen}>
|
<div class="content-container" class:hide={$loadingScreen}>
|
||||||
<Route {currentRoute} {params}/>
|
<Route {currentRoute} {params}/>
|
||||||
@ -17,12 +20,10 @@
|
|||||||
import Sidebar from '../includes/Sidebar.svelte'
|
import Sidebar from '../includes/Sidebar.svelte'
|
||||||
import LoadingScreen from '../includes/LoadingScreen.svelte'
|
import LoadingScreen from '../includes/LoadingScreen.svelte'
|
||||||
import NotifyModal from '../includes/NotifyModal.svelte'
|
import NotifyModal from '../includes/NotifyModal.svelte'
|
||||||
import axios from "axios";
|
|
||||||
import {API_URL} from '../js/constants'
|
|
||||||
import {notifyError} from '../js/util'
|
|
||||||
import {loadingScreen} from "../js/stores"
|
import {loadingScreen} from "../js/stores"
|
||||||
import {redirectLogin, setDefaultHeaders} from '../includes/Auth.svelte'
|
import {redirectLogin, setDefaultHeaders} from '../includes/Auth.svelte'
|
||||||
import {onMount} from "svelte";
|
import {onMount} from "svelte";
|
||||||
|
import Index from "../views/Index.svelte";
|
||||||
|
|
||||||
export let currentRoute;
|
export let currentRoute;
|
||||||
export let params = {};
|
export let params = {};
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div class="content" transition:fade>
|
<div class="content">
|
||||||
<div class="card-wrapper">
|
<div class="card-wrapper">
|
||||||
<Card footer={false} fill={false}>
|
<Card footer={false} fill={false}>
|
||||||
<span slot="title">
|
<span slot="title">
|
||||||
@ -34,7 +34,7 @@
|
|||||||
import Card from '../components/Card.svelte'
|
import Card from '../components/Card.svelte'
|
||||||
import InviteBadge from '../components/InviteBadge.svelte'
|
import InviteBadge from '../components/InviteBadge.svelte'
|
||||||
import Button from '../components/Button.svelte'
|
import Button from '../components/Button.svelte'
|
||||||
import {permissionLevelCache} from "../js/stores";
|
import {loadingScreen, permissionLevelCache} from "../js/stores";
|
||||||
|
|
||||||
setDefaultHeaders();
|
setDefaultHeaders();
|
||||||
|
|
||||||
@ -58,7 +58,7 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
withLoadingScreen(() => {});
|
loadingScreen.set(false);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user