gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: remove testing base url


From: gnunet
Subject: [taler-wallet-core] branch master updated: remove testing base url
Date: Thu, 16 Nov 2023 17:17:49 +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 3acb70a53 remove testing base url
3acb70a53 is described below

commit 3acb70a539d9ea99971c83d31b57aa1ca65049b8
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Thu Nov 16 13:17:44 2023 -0300

    remove testing base url
---
 packages/aml-backoffice-ui/src/pages/Officer.tsx | 8 +++++++-
 packages/aml-backoffice-ui/src/settings.ts       | 8 ++------
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/packages/aml-backoffice-ui/src/pages/Officer.tsx 
b/packages/aml-backoffice-ui/src/pages/Officer.tsx
index abada3725..21c26f3d4 100644
--- a/packages/aml-backoffice-ui/src/pages/Officer.tsx
+++ b/packages/aml-backoffice-ui/src/pages/Officer.tsx
@@ -2,6 +2,10 @@ import { Fragment, h } from "preact";
 import { useOfficer } from "../hooks/useOfficer.js";
 import { HandleAccountNotReady } from "./HandleAccountNotReady.js";
 import { useTranslationContext } from "@gnu-taler/web-util/browser";
+import { uiSettings } from "../settings.js";
+
+const DOMAIN =
+  typeof (window as any) !== "undefined" ? window.origin : "exchange.taler.net"
 
 export function Officer() {
   const officer = useOfficer();
@@ -10,6 +14,8 @@ export function Officer() {
     return <HandleAccountNotReady officer={officer} />;
   }
 
+  const signupEmail = uiSettings.signupEmail ?? `aml-signup@${DOMAIN}`
+
   return (
     <div>
       <h1 class="my-2 text-3xl font-bold tracking-tight text-gray-900 ">
@@ -20,7 +26,7 @@ export function Officer() {
       </div>
       <p>
         <a
-          href={`mailto:aml@exchange.taler.net?body=${encodeURIComponent(
+          href={`mailto:${signupEmail}?body=${encodeURIComponent(
             `I want my AML account\n\n\nPubKey: ${officer.account.id}`,
           )}`}
           target="_blank"
diff --git a/packages/aml-backoffice-ui/src/settings.ts 
b/packages/aml-backoffice-ui/src/settings.ts
index 9c65837c3..68f44b4df 100644
--- a/packages/aml-backoffice-ui/src/settings.ts
+++ b/packages/aml-backoffice-ui/src/settings.ts
@@ -15,18 +15,14 @@
  */
 
 export interface UiSettings {
-  backendBaseURL: string;
-  allowRegistrations: boolean;
-  uiName: string;
+  backendBaseURL?: string;
+  signupEmail?: string;
 }
 
 /**
  * Global settings for the UI.
  */
 const defaultSettings: UiSettings = {
-  backendBaseURL: "http://exchange.taler.test:1180/";,
-  allowRegistrations: true,
-  uiName: "Taler Bank",
 };
 
 export const uiSettings: UiSettings =

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