From 1f9b849bd3ddc3dfb2fe687b8ab1e9a3eedb47e0 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 29 Jul 2024 03:27:34 +0200 Subject: [PATCH] UX: indicate loading state when rechecking on the status page --- src/UI/Status/StatusGUI.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/src/UI/Status/StatusGUI.svelte b/src/UI/Status/StatusGUI.svelte index 918a1a0ea..19b26e2ce 100644 --- a/src/UI/Status/StatusGUI.svelte +++ b/src/UI/Status/StatusGUI.svelte @@ -19,6 +19,7 @@ const src = new UIEventSource(undefined) function check() { + src.setData(undefined) const promise = raw ? Utils.download(url) : Utils.downloadJson(url) promise?.then((d) => src.setData({ success: d }))?.catch((err) => src.setData({ error: err })) }