diff --git a/web/backoffice/src/lib/components/settings/Version.svelte b/web/backoffice/src/lib/components/settings/App.svelte
similarity index 53%
rename from web/backoffice/src/lib/components/settings/Version.svelte
rename to web/backoffice/src/lib/components/settings/App.svelte
index d48f6aae..deaeb20d 100644
--- a/web/backoffice/src/lib/components/settings/Version.svelte
+++ b/web/backoffice/src/lib/components/settings/App.svelte
@@ -23,7 +23,7 @@
let updateButtonActive = version !== lastVersion && !inRequest;
onMount(async () => {
- getStatus((v, lv) => { version = v; });
+ getStatus((v, lv) => { version = v; lastVersion = lv; });
});
@@ -31,18 +31,23 @@
{:else}
- Version
+ App
{/if}
-
-
You are currently running Plebeian Market {version}.
-
The last available version is {lastVersion}.
-
-
-
-
-
+{#if version !== null && lastVersion !== null}
+
+
You are currently running
Plebeian Market {version}.
+
The last available version is {lastVersion}.
+
+
+
+
+{:else}
+
+
Running Plebeian Market.
+
+{/if}
\ No newline at end of file
diff --git a/web/backoffice/src/routes/account/settings/+page.svelte b/web/backoffice/src/routes/account/settings/+page.svelte
index a84bacd2..36c48640 100644
--- a/web/backoffice/src/routes/account/settings/+page.svelte
+++ b/web/backoffice/src/routes/account/settings/+page.svelte
@@ -11,7 +11,7 @@
import Nostr from "$lib/components/settings/Nostr.svelte";
import Login from "$lib/components/settings/Login.svelte";
import V4V from "$lib/components/settings/V4V.svelte";
- import Version from "$lib/components/settings/Version.svelte";
+ import App from "$lib/components/settings/App.svelte";
import Wallet from "$lib/components/settings/Wallet.svelte";
import { goto } from '$app/navigation';
@@ -21,8 +21,8 @@
let NOSTR_PAGE = "Nostr";
let LOGIN_PAGE = "Login";
let V4V_PAGE = "Value 4 Value";
- let VERSION_PAGE = "Version";
- let pages = [STALL_PAGE, LOGIN_PAGE, WALLET_PAGE, EMAIL_PAGE, NOSTR_PAGE, V4V_PAGE, VERSION_PAGE];
+ let APP_PAGE = "App";
+ let pages = [STALL_PAGE, LOGIN_PAGE, WALLET_PAGE, EMAIL_PAGE, NOSTR_PAGE, V4V_PAGE, APP_PAGE];
let WALLET_PAGE_INDEX = pages.indexOf(WALLET_PAGE);
let currentPage: string | null = null;
@@ -72,8 +72,8 @@
{:else if currentPage === V4V_PAGE}
- {:else if currentPage === VERSION_PAGE}
-
+ {:else if currentPage === APP_PAGE}
+
{/if}