Skip to content

Commit

Permalink
Fix update button and messaging.
Browse files Browse the repository at this point in the history
  • Loading branch information
ibz committed Feb 22, 2024
1 parent 63f45a5 commit 333b464
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/backoffice/src/lib/components/settings/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -83,12 +83,12 @@
{#if updateRunning}
<p class="text-2xl font-bold mt-4">Update running! Please wait...</p>
{/if}
{#if updateSuccess}
{#if updateSuccess && !updateRequested && !updateRunning}
<InfoBox>
Update successful!
</InfoBox>
{/if}
{#if updateFailed}
{#if updateFailed && !updateRequested && !updateRunning}
<ErrorBox>
Update failed!
</ErrorBox>
Expand Down

0 comments on commit 333b464

Please sign in to comment.