gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant-backoffice] 01/03: read injected value to disallow regis


From: gnunet
Subject: [taler-merchant-backoffice] 01/03: read injected value to disallow registrations
Date: Tue, 10 May 2022 12:43:02 +0200

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

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

commit ba249e2f0b02a558c0faf69b1cc0c6be703d608b
Author: ms <ms@taler.net>
AuthorDate: Thu May 5 14:01:22 2022 +0200

    read injected value to disallow registrations
---
 packages/bank/src/pages/home/index.tsx | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/packages/bank/src/pages/home/index.tsx 
b/packages/bank/src/pages/home/index.tsx
index 89ab74a..898bef3 100644
--- a/packages/bank/src/pages/home/index.tsx
+++ b/packages/bank/src/pages/home/index.tsx
@@ -1629,8 +1629,16 @@ export function BankHome(): VNode {
       </PageContext.Provider>
     </SWRWithoutCredentials>);
   }
-
   if (pageState.tryRegister) {
+    if (typeof %LIBEUFIN_UI_ALLOW_REGISTRATIONS% !== "undefined" && 
!%LIBEUFIN_UI_ALLOW_REGISTRATIONS%) {
+      return (
+        <PageContext.Provider value={[pageState, pageStateSetter]}>
+          <BankFrame>
+         <p>i18n`Currently, the bank is not accepting new registrations!`</p>
+       </BankFrame>
+        </PageContext.Provider>
+      );
+    }
     return (
       <PageContext.Provider value={[pageState, pageStateSetter]}>
         <BankFrame>

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