diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/Application.tsx | 9 | ||||
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/Settings.tsx | 11 |
2 files changed, 12 insertions, 8 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/Application.tsx b/packages/taler-wallet-webextension/src/wallet/Application.tsx index 13afccb6c..7d4dafb56 100644 --- a/packages/taler-wallet-webextension/src/wallet/Application.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Application.tsx @@ -391,9 +391,16 @@ export function Application(): VNode { /> <Route path={Pages.ctaWithdrawManual.pattern} - component={({ amount }: { amount: string }) => ( + component={({ + amount, + talerUri, + }: { + amount: string; + talerUri: string; + }) => ( <CallToActionTemplate title={i18n.str`Digital cash withdrawal`}> <WithdrawPageFromParams + talerExchangeWithdrawUri={talerUri} amount={amount} cancel={() => redirectTo(Pages.balance)} onSuccess={(tid: string) => diff --git a/packages/taler-wallet-webextension/src/wallet/Settings.tsx b/packages/taler-wallet-webextension/src/wallet/Settings.tsx index 6ca443d10..10bcee314 100644 --- a/packages/taler-wallet-webextension/src/wallet/Settings.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Settings.tsx @@ -250,13 +250,6 @@ export function SettingsView({ <EnabledBySettings name="advanceMode"> <AdvanceSettings /> </EnabledBySettings> - <Checkbox - label={i18n.str`Lang selector`} - name="langSelector" - description={i18n.str`Allows to manually change the language of the UI. Otherwise it will be automatically selected by your browser configuration.`} - enabled={langToggle.value!} - onToggle={langToggle.button.onClick!} - /> <EnabledBySettings name="langSelector"> <SubTitle> <i18n.Translate>Display</i18n.Translate> @@ -340,6 +333,10 @@ function AdvanceSettings(): VNode { label: i18n.str`Allow batch withdrawals`, description: i18n.str`Using the batch withdrawal API allows faster withdrawals (wallet restart required)`, }, + langSelector: { + label: i18n.str`Lang selector`, + description: i18n.str`Allows to manually change the language of the UI. Otherwise it will be automatically selected by your browser configuration.`, + }, }; return ( <Fragment> |