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 errorMessage: string;
|
||||||
let stations: NearestStationResponse[] = [];
|
let stations: NearestStationResponse[] = [];
|
||||||
|
let blockLoading: boolean = true;
|
||||||
|
|
||||||
let config: CardConfig = {
|
let config: CardConfig = {
|
||||||
title: "Near to Me",
|
title: "Near to Me",
|
||||||
@ -58,10 +59,14 @@
|
|||||||
getNearestStations();
|
getNearestStations();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
blockLoading = false;
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Card {config}>
|
<Card {config}>
|
||||||
|
{#if blockLoading}
|
||||||
|
<InLineLoading />
|
||||||
|
{:else}
|
||||||
{#if !$uuid || $uuid === "null"}
|
{#if !$uuid || $uuid === "null"}
|
||||||
<LinkButton text="Register to use this feature" link="/more/reg" />
|
<LinkButton text="Register to use this feature" link="/more/reg" />
|
||||||
{:else if $location}
|
{:else if $location}
|
||||||
@ -81,6 +86,7 @@
|
|||||||
{:else}
|
{:else}
|
||||||
<ScriptButton text={"Turn on Location"} fn={turnOnLocation} />
|
<ScriptButton text={"Turn on Location"} fn={turnOnLocation} />
|
||||||
{/if}
|
{/if}
|
||||||
|
{/if}
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
Loading…
Reference in New Issue
Block a user