From 3f9d599998e5f53646d1c51ff954912bf9453f19 Mon Sep 17 00:00:00 2001 From: derekc Date: Fri, 27 Feb 2026 23:50:31 -0800 Subject: [PATCH] Fix WS connected indicator and restore ref import in TVView Use connected ref directly from useWebSocket instead of copying the value, so the Live/Reconnecting indicator updates reactively. Restore ref import that was incorrectly removed (still needed for the clock). Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/views/TVView.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/views/TVView.vue b/frontend/src/views/TVView.vue index daf0213..b6d1911 100644 --- a/frontend/src/views/TVView.vue +++ b/frontend/src/views/TVView.vue @@ -100,11 +100,9 @@ const currentSubjectName = computed(() => ) // WebSocket -const wsConnected = ref(false) -const { connected } = useWebSocket(childId, (msg) => { +const { connected: wsConnected } = useWebSocket(childId, (msg) => { scheduleStore.applyWsEvent(msg) }) -wsConnected.value = connected.value // Initial data load onMounted(async () => {