Fix flashing in version settings page
This commit is contained in:
parent
d684ab95f2
commit
0a12dfd192
|
@ -14,6 +14,7 @@
|
||||||
import { redirect } from "@roxi/routify"
|
import { redirect } from "@roxi/routify"
|
||||||
|
|
||||||
let version
|
let version
|
||||||
|
let loaded = false
|
||||||
|
|
||||||
// Only admins allowed here
|
// Only admins allowed here
|
||||||
$: {
|
$: {
|
||||||
|
@ -46,8 +47,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onMount(() => {
|
onMount(async () => {
|
||||||
getVersion()
|
await getVersion()
|
||||||
|
loaded = true
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -61,16 +63,16 @@
|
||||||
</Body>
|
</Body>
|
||||||
</Layout>
|
</Layout>
|
||||||
<Divider />
|
<Divider />
|
||||||
{#if version}
|
{#if loaded}
|
||||||
<Layout noPadding gap="XS">
|
<Layout noPadding gap="XS">
|
||||||
<Label size="L">Current version</Label>
|
<Label size="L">Current version</Label>
|
||||||
<Heading size="S">
|
<Heading size="S">
|
||||||
{version}
|
{version || "-"}
|
||||||
</Heading>
|
</Heading>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
<div>
|
||||||
|
<Button cta on:click={updateBudibase}>Check for updates</Button>
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div>
|
|
||||||
<Button cta on:click={updateBudibase}>Check for updates</Button>
|
|
||||||
</div>
|
|
||||||
</Layout>
|
</Layout>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Reference in New Issue