fix 7723
This commit is contained in:
parent
1723f16b9c
commit
d11048b68c
@ -28,6 +28,7 @@ import { useApiContext } from "@gnu-taler/web-util/lib/index.browser";
|
|||||||
import { useCallback, useEffect, useState } from "preact/hooks";
|
import { useCallback, useEffect, useState } from "preact/hooks";
|
||||||
import { useSWRConfig } from "swr";
|
import { useSWRConfig } from "swr";
|
||||||
import { useBackendContext } from "../context/backend.js";
|
import { useBackendContext } from "../context/backend.js";
|
||||||
|
import { bankUiSettings } from "../settings.js";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Has the information to reach and
|
* Has the information to reach and
|
||||||
@ -50,7 +51,7 @@ interface LoggedOut {
|
|||||||
status: "loggedOut";
|
status: "loggedOut";
|
||||||
}
|
}
|
||||||
|
|
||||||
const maybeRootPath = "https://bank.demo.taler.net/demobanks/default/";
|
const maybeRootPath = bankUiSettings.backendBaseURL;
|
||||||
|
|
||||||
export function getInitialBackendBaseURL(): string {
|
export function getInitialBackendBaseURL(): string {
|
||||||
const overrideUrl = localStorage.getItem("bank-base-url");
|
const overrideUrl = localStorage.getItem("bank-base-url");
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface BankUiSettings {
|
export interface BankUiSettings {
|
||||||
|
backendBaseURL: string;
|
||||||
allowRegistrations: boolean;
|
allowRegistrations: boolean;
|
||||||
showDemoNav: boolean;
|
showDemoNav: boolean;
|
||||||
bankName: string;
|
bankName: string;
|
||||||
@ -25,6 +26,7 @@ export interface BankUiSettings {
|
|||||||
* Global settings for the demobank UI.
|
* Global settings for the demobank UI.
|
||||||
*/
|
*/
|
||||||
const defaultSettings: BankUiSettings = {
|
const defaultSettings: BankUiSettings = {
|
||||||
|
backendBaseURL: "https://bank.demo.taler.net/demobanks/default/",
|
||||||
allowRegistrations: true,
|
allowRegistrations: true,
|
||||||
bankName: "Taler Bank",
|
bankName: "Taler Bank",
|
||||||
showDemoNav: true,
|
showDemoNav: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user