diff options
author | Sebastian <sebasjm@gmail.com> | 2022-01-31 15:27:58 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-01-31 15:27:58 -0300 |
commit | 6a3747cd8e585c34fdb5d84f8880744759d1c340 (patch) | |
tree | a425224bcdfeee380258d8f214b72edc0c8fca70 /packages/taler-wallet-webextension/src | |
parent | 47bd790b7b657fedf268dd7109cb0584cca752ac (diff) | |
download | wallet-core-6a3747cd8e585c34fdb5d84f8880744759d1c340.tar.xz |
fix: #6965
Diffstat (limited to 'packages/taler-wallet-webextension/src')
-rw-r--r-- | packages/taler-wallet-webextension/src/popupEntryPoint.tsx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/packages/taler-wallet-webextension/src/popupEntryPoint.tsx b/packages/taler-wallet-webextension/src/popupEntryPoint.tsx index 80e67f881..e1d1b9017 100644 --- a/packages/taler-wallet-webextension/src/popupEntryPoint.tsx +++ b/packages/taler-wallet-webextension/src/popupEntryPoint.tsx @@ -101,6 +101,11 @@ function Application(): VNode { Pages.balance_manual_withdraw.replace(":currency?", ""), ) } + goToWalletDeposit={(currency: string) => + goToWalletPage( + Pages.balance_deposit.replace(":currency", currency), + ) + } goToWalletHistory={(currency: string) => goToWalletPage( Pages.balance_history.replace(":currency", currency), @@ -167,14 +172,15 @@ function Application(): VNode { ); } -function goToWalletPage(page: Pages | string): null { +async function goToWalletPage(page: Pages | string): Promise<void> { // eslint-disable-next-line no-undef - chrome.tabs.create({ + await chrome.tabs.create({ active: true, // eslint-disable-next-line no-undef url: chrome.runtime.getURL(`/static/wallet.html#${page}`), }); - return null; + window.close(); + // return null; } function Redirect({ to }: { to: string }): null { |