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 <noreply@anthropic.com>
This commit is contained in:
2026-02-27 23:50:31 -08:00
parent ad10f9bc61
commit 3f9d599998

View File

@@ -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 () => {