taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 6a3747cd8e585c34fdb5d84f8880744759d1c340
parent 47bd790b7b657fedf268dd7109cb0584cca752ac
Author: Sebastian <sebasjm@gmail.com>
Date:   Mon, 31 Jan 2022 15:27:58 -0300

fix: #6965

Diffstat:
Mpackages/taler-wallet-webextension/src/popupEntryPoint.tsx | 12+++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)

diff --git 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 {