feat(info): route without successful overpass result
All checks were successful
TrafficCue CI / check (push) Successful in 1m41s
TrafficCue CI / build (push) Successful in 10m37s
TrafficCue CI / build-android (push) Successful in 26m55s

This commit is contained in:
2025-10-25 20:16:25 +02:00
parent 729cc22b37
commit 59ae422fe3

View File

@ -99,6 +99,18 @@
> >
{m["sidebar.info.dropped"]()} {m["sidebar.info.dropped"]()}
</SidebarHeader> </SidebarHeader>
<div id="actions">
<Button
onclick={() => {
view.switch("route", {
to: lat + "," + lng,
});
}}
>
<RouteIcon />
{m["sidebar.info.route"]()}
</Button>
</div>
<p>{m.loading()}</p> <p>{m.loading()}</p>
{:then res} {:then res}
{#if res.elements.length === 0} {#if res.elements.length === 0}
@ -305,6 +317,18 @@
> >
Dropped Pin Dropped Pin
</SidebarHeader> </SidebarHeader>
<div id="actions">
<Button
onclick={() => {
view.switch("route", {
to: lat + "," + lng,
});
}}
>
<RouteIcon />
{m["sidebar.info.route"]()}
</Button>
</div>
<p>Error: {err.message}</p> <p>Error: {err.message}</p>
{/await} {/await}