From 49baf33f744c9427d586bc334f8d885aacbc543b Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 11 Oct 2023 12:09:26 -0300 Subject: wallet version as libtool --- .../src/wallet/Settings.tsx | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'packages/taler-wallet-webextension/src/wallet/Settings.tsx') diff --git a/packages/taler-wallet-webextension/src/wallet/Settings.tsx b/packages/taler-wallet-webextension/src/wallet/Settings.tsx index 0aa46d615..45a6db5df 100644 --- a/packages/taler-wallet-webextension/src/wallet/Settings.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Settings.tsx @@ -17,6 +17,7 @@ import { ExchangeListItem, ExchangeTosStatus, + LibtoolVersion, TranslatedString, WalletCoreVersion, } from "@gnu-taler/taler-util"; @@ -34,17 +35,18 @@ import { LinkPrimary, SubTitle, SuccessText, + WarningBox, WarningText, } from "../components/styled/index.js"; import { useAlertContext } from "../context/alert.js"; import { useBackendContext } from "../context/backend.js"; import { useAsyncAsHook } from "../hooks/useAsyncAsHook.js"; import { useBackupDeviceName } from "../hooks/useBackupDeviceName.js"; -import { useClipboardPermissions } from "../hooks/useClipboardPermissions.js"; import { useSettings } from "../hooks/useSettings.js"; import { ToggleHandler } from "../mui/handlers.js"; -import { platform } from "../platform/foreground.js"; import { Settings } from "../platform/api.js"; +import { platform } from "../platform/foreground.js"; +import { WALLET_CORE_SUPPORTED_VERSION } from "../wxApi.js"; const GIT_HASH = typeof __GIT_HASH__ !== "undefined" ? __GIT_HASH__ : undefined; @@ -206,7 +208,14 @@ export function SettingsView({ - {coreVersion && ( + + {coreVersion && ( + {LibtoolVersion.compare(coreVersion.version, WALLET_CORE_SUPPORTED_VERSION)?.compatible ? undefined : + + + The version of wallet core is not supported. (supported version: {WALLET_CORE_SUPPORTED_VERSION}) + + } {coreVersion.bank}} /> + {coreVersion.version}} + /> + )} Advance mode -- cgit v1.2.3