gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant-backoffice] branch master updated (0c812b2 -> 9aabcf8)


From: gnunet
Subject: [taler-merchant-backoffice] branch master updated (0c812b2 -> 9aabcf8)
Date: Tue, 10 May 2022 12:43:01 +0200

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

ms pushed a change to branch master
in repository merchant-backoffice.

    from 0c812b2  fix: added the missing *1000 after change from ms to us
     new ba249e2  read injected value to disallow registrations
     new 35f9e16  Wrap placeholders in "__" instead of "%".
     new 9aabcf8  debug placeholder

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 packages/bank/src/pages/home/index.tsx | 26 +++++++++++++++++++-------
 1 file changed, 19 insertions(+), 7 deletions(-)

diff --git a/packages/bank/src/pages/home/index.tsx 
b/packages/bank/src/pages/home/index.tsx
index 89ab74a..b701844 100644
--- a/packages/bank/src/pages/home/index.tsx
+++ b/packages/bank/src/pages/home/index.tsx
@@ -762,11 +762,11 @@ function BankFrame(Props: any): VNode {
 
   // Prepare demo sites links.
   let DEMO_SITES = [
-    ["Landing", "%DEMO_SITE_LANDING_URL%"],
-    ["Bank", "%DEMO_SITE_BANK_URL%"],
-    ["Blog", "%DEMO_SITE_BLOG_URL%"],
-    ["Donations", "%DEMO_SITE_DONATIONS_URL%"],
-    ["Survey", "%DEMO_SITE_SURVEY_URL%"],
+    ["Landing", "__DEMO_SITE_LANDING_URL__"],
+    ["Bank", "__DEMO_SITE_BANK_URL__"],
+    ["Blog", "__DEMO_SITE_BLOG_URL__"],
+    ["Donations", "__DEMO_SITE_DONATIONS_URL__"],
+    ["Survey", "__DEMO_SITE_SURVEY_URL__"],
   ];
   let demo_sites = [];
   for (const i in DEMO_SITES) {
@@ -1629,16 +1629,28 @@ export function BankHome(): VNode {
       </PageContext.Provider>
     </SWRWithoutCredentials>);
   }
-
   if (pageState.tryRegister) {
+    // @ts-ignore
+    console.log("allow registrations?", __LIBEUFIN_UI_ALLOW_REGISTRATIONS__)
+    // @ts-ignore
+    if (__LIBEUFIN_UI_ALLOW_REGISTRATIONS__) {
+      return (
+        <PageContext.Provider value={[pageState, pageStateSetter]}>
+          <BankFrame>
+           <RegistrationForm backendStateSetter={backendStateSetter} />
+         </BankFrame>
+        </PageContext.Provider>
+      );
+    }
     return (
       <PageContext.Provider value={[pageState, pageStateSetter]}>
         <BankFrame>
-         <RegistrationForm backendStateSetter={backendStateSetter} />
+         <p>{i18n`Currently, the bank is not accepting new registrations!`}</p>
        </BankFrame>
       </PageContext.Provider>
     );
   }
+
   /**
    * Credentials were correct, now render the bank account page,
    * with balance, transactions history, and a Taler withdrawal

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