Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to deselect the timing and status radio buttons #478

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib/draw/route/RouteControls.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@
{#if $snapMode}
<p style="background: red; color: white; padding: 8px;">
Snapping to existing roads. Press <b>s</b>
or click below to draw anywhere
or click below to draw anywhere
</p>
<SecondaryButton on:click={toggleSnap}>Draw anywhere</SecondaryButton>
{:else}
<p style="background: blue; color: white; padding: 8px;">
Drawing points anywhere. Press <b>s</b>
or click below to snap to roads
or click below to snap to roads
</p>
<SecondaryButton on:click={toggleSnap}>Snap to roads</SecondaryButton>
{/if}
Expand Down
2 changes: 2 additions & 0 deletions src/lib/sidebar/pipeline/TimingForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<Radio
legend="Status"
choices={[
["", "Unknown"],
["aspiration", "Aspiration"],
["planned", "Planned"],
["in development", "In development"],
Expand All @@ -35,6 +36,7 @@
<Radio
legend="Timescale"
choices={[
["", "Unknown"],
["short", "Short (1-3 years)"],
["medium", "Medium (3-6 years)"],
["long", "Long (6-10 years)"],
Expand Down
Loading