Skip to content

Commit

Permalink
Disable debug button when a CH is used
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Jun 25, 2024
1 parent 01e03c0 commit 2d3065d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/src/RouteMode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@
{#if err}
<p>{err}</p>
{:else if gj}
<button on:click={debugRoute}>Watch how this route was found</button>
<button on:click={debugRoute} disabled={$travelMode != "transit"}
>Watch how this route was found (PT only)</button
>

<ol>
{#each gj.features as f}
Expand Down

0 comments on commit 2d3065d

Please sign in to comment.