From a23d24f15063c9790142e54740eaeca0012eb8b9 Mon Sep 17 00:00:00 2001 From: Evan Song Date: Thu, 17 Oct 2024 21:13:43 -0700 Subject: [PATCH] fix: get rid of "Something went wrong..." during initial load Signed-off-by: Evan Song --- apps/frontend/src/pages/servers/manage/[id].vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/frontend/src/pages/servers/manage/[id].vue b/apps/frontend/src/pages/servers/manage/[id].vue index e3d87288d..c8b3535c0 100644 --- a/apps/frontend/src/pages/servers/manage/[id].vue +++ b/apps/frontend/src/pages/servers/manage/[id].vue @@ -65,7 +65,7 @@
@@ -116,6 +116,7 @@ import type { ServerState, Stats, WSEvent, WSInstallationResultEvent } from "~/t const socket = ref(null); const isReconnecting = ref(false); +const isLoading = ref(true); // initial loading state const reconnectInterval = ref | null>(null); const route = useNativeRoute(); @@ -193,6 +194,7 @@ const connectWebSocket = () => { socket.value?.send(JSON.stringify({ event: "auth", jwt: wsAuth.value?.token })); isConnected.value = true; isReconnecting.value = false; + isLoading.value = false; if (reconnectInterval.value) { clearInterval(reconnectInterval.value); reconnectInterval.value = null;