From dfc92f5528f7adcd72f2ab54aa409e4a4f90687e Mon Sep 17 00:00:00 2001 From: Jonathon Leight Date: Wed, 8 Jul 2026 18:01:03 -0400 Subject: [PATCH] Show fetch location alert immediately --- internal/core/templates/console.html | 20 ++++++++++++++------ internal/e2e/console_confirm_test.go | 13 ++++++++----- internal/web/static/console.js | 9 +++++++-- 3 files changed, 29 insertions(+), 13 deletions(-) diff --git a/internal/core/templates/console.html b/internal/core/templates/console.html index 53b506c..24697f9 100644 --- a/internal/core/templates/console.html +++ b/internal/core/templates/console.html @@ -14,17 +14,25 @@ {{/* Confirm/location prompts. Connecting the modem sends a signed login that -confirms access (server-side); these banners reflect the state at page load and -are hidden live by console.js once a confirmed/location status arrives. */}} +confirms access (server-side). These reflect the state at page load; console.js +then updates them live — hiding the confirm prompt and revealing the location +prompt once a "confirmed" status arrives, and hiding the location prompt once a +"location" status arrives. The location prompt is always rendered when no +location is stored (hidden until the repeater is confirmed with admin) so the +swap needs no new markup. The flex row is nested so the [hidden] attribute wins +(Bootstrap's .d-flex is display:flex !important and would otherwise show it). */}} {{if not .Repeater.Confirmed}} -{{else if and .Repeater.IsAdmin (not .Repeater.Latitude)}} -