blockLoading of near to me card until stores have been read
This commit is contained in:
parent
e3632986c2
commit
2b8d32f3c9
@ -15,6 +15,7 @@
|
||||
|
||||
let errorMessage: string;
|
||||
let stations: NearestStationResponse[] = [];
|
||||
let blockLoading: boolean = true;
|
||||
|
||||
let config: CardConfig = {
|
||||
title: "Near to Me",
|
||||
@ -58,10 +59,14 @@
|
||||
getNearestStations();
|
||||
}
|
||||
}
|
||||
blockLoading = false;
|
||||
});
|
||||
</script>
|
||||
|
||||
<Card {config}>
|
||||
{#if blockLoading}
|
||||
<InLineLoading />
|
||||
{:else}
|
||||
{#if !$uuid || $uuid === "null"}
|
||||
<LinkButton text="Register to use this feature" link="/more/reg" />
|
||||
{:else if $location}
|
||||
@ -81,6 +86,7 @@
|
||||
{:else}
|
||||
<ScriptButton text={"Turn on Location"} fn={turnOnLocation} />
|
||||
{/if}
|
||||
{/if}
|
||||
</Card>
|
||||
|
||||
<style>
|
||||
|
Loading…
Reference in New Issue
Block a user