From 333b464794300e92d0b6a23e140dd92dbe8ce665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ioan=20Biz=C4=83u?= Date: Thu, 22 Feb 2024 13:22:28 +0200 Subject: [PATCH] Fix update button and messaging. --- web/backoffice/src/lib/components/settings/App.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/backoffice/src/lib/components/settings/App.svelte b/web/backoffice/src/lib/components/settings/App.svelte index ef84afc7..c313fc31 100644 --- a/web/backoffice/src/lib/components/settings/App.svelte +++ b/web/backoffice/src/lib/components/settings/App.svelte @@ -29,7 +29,7 @@ new ErrorHandler(true, () => inRequest = false)); } - let updateButtonActive = lastVersion !== null && version !== lastVersion && !inRequest && !updateRequested && !updateRunning; + $: updateButtonActive = lastVersion !== null && version !== lastVersion && !inRequest && !updateRequested && !updateRunning; function checkStatus(checkLastRelease: boolean) { getStatus(checkLastRelease, @@ -83,12 +83,12 @@ {#if updateRunning}
Update running! Please wait...
{/if} - {#if updateSuccess} + {#if updateSuccess && !updateRequested && !updateRunning}