Skip to content

Commit

Permalink
Address feedback: Make it more clear what JAT is being edited. #23
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed May 21, 2024
1 parent 97d51e1 commit 7b96da4
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/routes/route_check/jat_check/EditJunction.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,17 @@
<Checkbox bind:checked={showContext}>Show scheme context</Checkbox>
</CollapsibleCard>

<p>
Total JAT score for {stage}
<u>{$state.jat[junctionIdx].name || "Untitled junction"}</u>
:
{#if $state.jat[junctionIdx][stage].movements.length > 0}
{totalScore($state.jat[junctionIdx][stage]).toFixed(1)}%
{:else}
No movements added
{/if}
</p>

<Radio
legend="Add to map"
choices={[
Expand Down Expand Up @@ -181,14 +192,6 @@
Copy movements from {otherStage}
</SecondaryButton>
{/if}

{#if $state.jat[junctionIdx][stage].movements.length > 0}
<p>
Total JAT score: {totalScore($state.jat[junctionIdx][stage]).toFixed(
1,
)}%
</p>
{/if}
{:else}
<DefaultButton on:click={() => (editing = null)}>Save</DefaultButton>
<WarningButton on:click={deleteItem}>Delete</WarningButton>
Expand Down

0 comments on commit 7b96da4

Please sign in to comment.