Fix building loading settings modal before app package call finishes

This commit is contained in:
Andrew Kingston 2021-04-07 15:09:35 +01:00
parent 359e628156
commit f631f67979
1 changed files with 56 additions and 50 deletions

View File

@ -45,7 +45,11 @@
}
</script>
<div class="root">
{#await promise}
<!-- This should probably be some kind of loading state? -->
<div class="loading" />
{:then _}
<div class="root">
<div class="top-nav">
<div class="topleftnav">
<button class="home-logo">
@ -92,18 +96,20 @@
Request feature
</Button>
</div>
{#await promise}
<!-- This should probably be some kind of loading state? -->
<div />
{:then _}
<slot />
{:catch error}
</div>
{:catch error}
<p>Something went wrong: {error.message}</p>
{/await}
</div>
{/await}
<style>
.loading {
min-height: 100%;
height: 100%;
width: 100%;
background: var(--background);
}
.root {
min-height: 100%;
height: 100%;