gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant-backoffice] branch master updated: trigger tab update af


From: gnunet
Subject: [taler-merchant-backoffice] branch master updated: trigger tab update after showing the QR
Date: Wed, 07 Sep 2022 15:43:53 +0200

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository merchant-backoffice.

The following commit(s) were added to refs/heads/master by this push:
     new 321adee  trigger tab update after showing the QR
321adee is described below

commit 321adee497a5df616d4d8a2c5070e2fdd9738ab3
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Wed Sep 7 10:43:44 2022 -0300

    trigger tab update after showing the QR
---
 packages/bank/src/pages/home/index.tsx | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/packages/bank/src/pages/home/index.tsx 
b/packages/bank/src/pages/home/index.tsx
index f72106a..b9fe8a6 100644
--- a/packages/bank/src/pages/home/index.tsx
+++ b/packages/bank/src/pages/home/index.tsx
@@ -1027,6 +1027,12 @@ function TalerWithdrawalQRCode(Props: any): VNode {
   // waiting for the wallet:
 
   const { data, error, mutate } = 
useSWR(`integration-api/withdrawal-operation/${withdrawalId}`);
+  useEffect(() => {
+    //Taler Wallet WebExtension is listening to headers response and tab 
updates.
+    //In the SPA there is no header response with the Taler URI so 
+    //this hack manually triggers the tab update after the QR is in the DOM.
+    window.location.href = window.location.href.split("#")[0] + "#"
+  },[])
   if (typeof error !== "undefined") {
     console.log(`withdrawal (${withdrawalId}) was never (correctly) created at 
the bank...`, error);
     pageStateSetter((prevState: PageStateType) => ({

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]