1
0
Fork 0
mirror of synced 2024-07-03 05:20:32 +12:00

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 a9f50556d3
commit e897a5ae61

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%;