gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: show pending operations on ma


From: gnunet
Subject: [taler-wallet-core] branch master updated: show pending operations on main pages
Date: Fri, 25 Mar 2022 21:06:48 +0100

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

sebasjm pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new e89821a6 show pending operations on main pages
e89821a6 is described below

commit e89821a6c7f5b740ab5781354149dd2cc2b4047c
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Fri Mar 25 17:06:38 2022 -0300

    show pending operations on main pages
---
 .../taler-wallet-webextension/dev-html/index.html  |  2 +-
 .../taler-wallet-webextension/src/platform/dev.ts  |  2 +-
 .../src/wallet/Application.tsx                     | 32 +++++++++++++---------
 3 files changed, 21 insertions(+), 15 deletions(-)

diff --git a/packages/taler-wallet-webextension/dev-html/index.html 
b/packages/taler-wallet-webextension/dev-html/index.html
index c0919e9b..d141faa2 100644
--- a/packages/taler-wallet-webextension/dev-html/index.html
+++ b/packages/taler-wallet-webextension/dev-html/index.html
@@ -34,7 +34,7 @@
     <iframe
       id="wallet-window"
       name="wallet"
-      src="about:blank"
+      src="/wallet.html"
       name="wallet"
       width="800"
       height="100%"
diff --git a/packages/taler-wallet-webextension/src/platform/dev.ts 
b/packages/taler-wallet-webextension/src/platform/dev.ts
index a761bb01..def249e4 100644
--- a/packages/taler-wallet-webextension/src/platform/dev.ts
+++ b/packages/taler-wallet-webextension/src/platform/dev.ts
@@ -62,7 +62,7 @@ const api: PlatformAPI = ({
   },
 
   registerAllIncomingConnections: () => undefined,
-  registerOnInstalled: (fn: () => void) => fn(),
+  registerOnInstalled: (fn: () => void) => undefined,
   registerReloadOnNewVersion: () => undefined,
   registerTalerHeaderListener: () => undefined,
 
diff --git a/packages/taler-wallet-webextension/src/wallet/Application.tsx 
b/packages/taler-wallet-webextension/src/wallet/Application.tsx
index 2116b500..88a84d96 100644
--- a/packages/taler-wallet-webextension/src/wallet/Application.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/Application.tsx
@@ -83,19 +83,21 @@ export function Application(): VNode {
                 <Fragment>
                   <LogoHeader />
                   <WalletNavBar path={path} />
-                  <div
-                    style={{
-                      backgroundColor: "lightcyan",
-                      display: "flex",
-                      justifyContent: "center",
-                    }}
-                  >
-                    <PendingTransactions
-                      goToTransaction={(txId: string) =>
-                        route(Pages.balance_transaction.replace(":tid", txId))
-                      }
-                    />
-                  </div>
+                  {shouldShowPendingOperations(path) && (
+                    <div
+                      style={{
+                        backgroundColor: "lightcyan",
+                        display: "flex",
+                        justifyContent: "center",
+                      }}
+                    >
+                      <PendingTransactions
+                        goToTransaction={(txId: string) =>
+                          route(Pages.balance_transaction.replace(":tid", 
txId))
+                        }
+                      />
+                    </div>
+                  )}
                 </Fragment>
               );
             }}
@@ -261,3 +263,7 @@ function Redirect({ to }: { to: string }): null {
   });
   return null;
 }
+
+function shouldShowPendingOperations(path: string): boolean {
+  return ["/balance/history/", "/dev", "/settings", "/backup"].includes(path);
+}

-- 
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]