1
0
Fork 0
mirror of synced 2024-07-05 14:31:17 +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> </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="top-nav">
<div class="topleftnav"> <div class="topleftnav">
<button class="home-logo"> <button class="home-logo">
@ -92,18 +96,20 @@
Request feature Request feature
</Button> </Button>
</div> </div>
{#await promise}
<!-- This should probably be some kind of loading state? -->
<div />
{:then _}
<slot /> <slot />
{:catch error} </div>
{:catch error}
<p>Something went wrong: {error.message}</p> <p>Something went wrong: {error.message}</p>
{/await} {/await}
</div>
<style> <style>
.loading {
min-height: 100%;
height: 100%;
width: 100%;
background: var(--background);
}
.root { .root {
min-height: 100%; min-height: 100%;
height: 100%; height: 100%;