From 8c655d10b602967fae2bbfe2922c0006178f956e Mon Sep 17 00:00:00 2001 From: Asger Geel Weirsoee Date: Sat, 28 Feb 2026 04:12:42 +0100 Subject: [PATCH] UI: vis sidst opdateret status i host auto-refresh (#86) --- lobby/templates/lobby/host_screen.html | 10 ++++++++-- lobby/tests.py | 6 ++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/lobby/templates/lobby/host_screen.html b/lobby/templates/lobby/host_screen.html index 2d34381..98bc86b 100644 --- a/lobby/templates/lobby/host_screen.html +++ b/lobby/templates/lobby/host_screen.html @@ -25,12 +25,15 @@

Auto-refresh er slået fra.

+

Session-data ikke opdateret endnu.

Klar.
diff --git a/lobby/tests.py b/lobby/tests.py index 8b8e785..880e360 100644 --- a/lobby/tests.py +++ b/lobby/tests.py @@ -794,6 +794,12 @@ class UiScreenTests(TestCase): self.assertContains(response, "hostActionInFlight") self.assertContains(response, "withHostActionLock") self.assertContains(response, "Handling kører… afvent svar før næste klik.") + self.assertContains(response, "Session-data ikke opdateret endnu.") + self.assertContains(response, "Sidst opdateret:") + self.assertContains(response, "Session-data kan være forældet") + self.assertContains(response, "markSessionRefresh") + self.assertContains(response, "updateLastRefreshStatus") + self.assertContains(response, "isSessionDetailRead") self.assertContains(response, "showQuestionBtn.disabled=hostActionInFlight||!hasCode||phase!==") self.assertContains(response, "categorySelect.disabled=hostActionInFlight||!hasCode||phase!==")