From 7b96da46bff5ddcf561475accb1a26a85f684957 Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Tue, 21 May 2024 10:34:53 +0100 Subject: [PATCH] Address feedback: Make it more clear what JAT is being edited. #23 --- .../route_check/jat_check/EditJunction.svelte | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/routes/route_check/jat_check/EditJunction.svelte b/src/routes/route_check/jat_check/EditJunction.svelte index 7e40077464..07843f7a61 100644 --- a/src/routes/route_check/jat_check/EditJunction.svelte +++ b/src/routes/route_check/jat_check/EditJunction.svelte @@ -131,6 +131,17 @@ Show scheme context +

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

+ {/if} - - {#if $state.jat[junctionIdx][stage].movements.length > 0} -

- Total JAT score: {totalScore($state.jat[junctionIdx][stage]).toFixed( - 1, - )}% -

- {/if} {:else} (editing = null)}>Save Delete