[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: fix 7723
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: fix 7723 |
Date: |
Sun, 26 Feb 2023 00:06:26 +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 d11048b68 fix 7723
d11048b68 is described below
commit d11048b68c54724acee0630508437089c957bea8
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Sat Feb 25 20:06:17 2023 -0300
fix 7723
---
packages/demobank-ui/src/hooks/backend.ts | 3 ++-
packages/demobank-ui/src/settings.ts | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/packages/demobank-ui/src/hooks/backend.ts
b/packages/demobank-ui/src/hooks/backend.ts
index e0649f5fe..8d526c0e4 100644
--- a/packages/demobank-ui/src/hooks/backend.ts
+++ b/packages/demobank-ui/src/hooks/backend.ts
@@ -28,6 +28,7 @@ import { useApiContext } from
"@gnu-taler/web-util/lib/index.browser";
import { useCallback, useEffect, useState } from "preact/hooks";
import { useSWRConfig } from "swr";
import { useBackendContext } from "../context/backend.js";
+import { bankUiSettings } from "../settings.js";
/**
* Has the information to reach and
@@ -50,7 +51,7 @@ interface LoggedOut {
status: "loggedOut";
}
-const maybeRootPath = "https://bank.demo.taler.net/demobanks/default/";
+const maybeRootPath = bankUiSettings.backendBaseURL;
export function getInitialBackendBaseURL(): string {
const overrideUrl = localStorage.getItem("bank-base-url");
diff --git a/packages/demobank-ui/src/settings.ts
b/packages/demobank-ui/src/settings.ts
index ec4cee27c..6c78d287b 100644
--- a/packages/demobank-ui/src/settings.ts
+++ b/packages/demobank-ui/src/settings.ts
@@ -15,6 +15,7 @@
*/
export interface BankUiSettings {
+ backendBaseURL: string;
allowRegistrations: boolean;
showDemoNav: boolean;
bankName: string;
@@ -25,6 +26,7 @@ export interface BankUiSettings {
* Global settings for the demobank UI.
*/
const defaultSettings: BankUiSettings = {
+ backendBaseURL: "https://bank.demo.taler.net/demobanks/default/",
allowRegistrations: true,
bankName: "Taler Bank",
showDemoNav: true,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: fix 7723,
gnunet <=