From fb3804ac9597df10e2e11b5f0e5d0535d63ec019 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 25 Feb 2024 12:10:14 -0800 Subject: [PATCH] fix: check version loading progress --- src/lib/components/chat/Settings/About.svelte | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Settings/About.svelte b/src/lib/components/chat/Settings/About.svelte index 78a76bc63..fdeaa8b97 100644 --- a/src/lib/components/chat/Settings/About.svelte +++ b/src/lib/components/chat/Settings/About.svelte @@ -8,13 +8,14 @@ let ollamaVersion = ''; - let updateAvailable = false; + let updateAvailable = null; let version = { current: '', latest: '' }; const checkForVersionUpdates = async () => { + updateAvailable = null; version = await getVersionUpdates(localStorage.token).catch((error) => { return { current: WEBUI_VERSION, @@ -54,7 +55,11 @@ href="https://github.com/open-webui/open-webui/releases/tag/v{version.latest}" target="_blank" > - {updateAvailable ? `(v${version.latest} available!)` : '(latest)'} + {updateAvailable === null + ? 'Checking for updates...' + : updateAvailable + ? `(v${version.latest} available!)` + : '(latest)'}