summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorms <ms@taler.net>2022-05-05 14:01:22 +0200
committerms <ms@taler.net>2022-05-05 14:01:22 +0200
commit0b74f7164324ef31681621c57eca39b42a6b00dc (patch)
treeeb6a782125d7bbf984c52b518c6671cf4896f037
parent2672d10e87d502c5dc05acf778f4ffcc73bb0973 (diff)
downloadmerchant-backoffice-0b74f7164324ef31681621c57eca39b42a6b00dc.tar.gz
merchant-backoffice-0b74f7164324ef31681621c57eca39b42a6b00dc.tar.bz2
merchant-backoffice-0b74f7164324ef31681621c57eca39b42a6b00dc.zip
read injected value to disallow registrations
-rw-r--r--packages/bank/src/pages/home/index.tsx10
1 files changed, 9 insertions, 1 deletions
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>