From 012ba47d0bf669c258d703606a09c5d48922a58f Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 22 Feb 2024 12:32:05 +0100 Subject: webextension: mvp for force-reloading exchange entries --- .../src/wallet/Settings.tsx | 87 ++++++++++++++-------- 1 file changed, 56 insertions(+), 31 deletions(-) diff --git a/packages/taler-wallet-webextension/src/wallet/Settings.tsx b/packages/taler-wallet-webextension/src/wallet/Settings.tsx index 03e4dc64a..19b30dd5f 100644 --- a/packages/taler-wallet-webextension/src/wallet/Settings.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Settings.tsx @@ -129,11 +129,13 @@ export function SettingsView({ }: ViewProps): VNode { const { i18n, lang, supportedLang, changeLanguage } = useTranslationContext(); + const api = useBackendContext(); + return (
- Trust + Exchange Entries {!knownExchanges || !knownExchanges.length ? (
@@ -151,7 +153,10 @@ export function SettingsView({ URL - Term of Service + Terms of Service + + + Actions @@ -172,9 +177,7 @@ export function SettingsView({ ); case ExchangeTosStatus.Proposed: - return ( - proposed - ); + return proposed; default: return ( @@ -194,6 +197,22 @@ export function SettingsView({ + + + ); })} @@ -208,32 +227,38 @@ export function SettingsView({
- {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.exchange}} - /> - {coreVersion.merchant}} - /> - {coreVersion.bank}} - /> - {coreVersion.version}} - /> - - + {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.exchange}} + /> + {coreVersion.merchant}} + /> + {coreVersion.bank}} + /> + {coreVersion.version}} + /> + + )} Advance mode -- cgit v1.2.3