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