show testing tag
This commit is contained in:
parent
f6b63a691b
commit
bf3e99ea27
@ -165,7 +165,8 @@ export function BankFrame({
|
||||
</div>
|
||||
<div style="flex-grow:1" />
|
||||
<p>
|
||||
Copyright © 2014—2022 Taler Systems SA. {versionText}
|
||||
Copyright © 2014—2022 Taler Systems SA. {versionText}{" "}
|
||||
<TestingTag />
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
@ -299,3 +300,23 @@ function StatusBanner(): VNode | null {
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function TestingTag(): VNode {
|
||||
const testingUrl = localStorage.getItem("bank-base-url");
|
||||
if (!testingUrl) return <Fragment />;
|
||||
return (
|
||||
<span style={{ color: "gray" }}>
|
||||
Testing with {testingUrl}{" "}
|
||||
<a
|
||||
href=""
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
localStorage.removeItem("bank-base-url");
|
||||
window.location.reload();
|
||||
}}
|
||||
>
|
||||
stop testing
|
||||
</a>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
@ -79,6 +79,7 @@ export function LoginForm({ onRegister }: { onRegister?: () => void }): VNode {
|
||||
name="username"
|
||||
id="username"
|
||||
value={username ?? ""}
|
||||
enterkeyhint="next"
|
||||
placeholder="Username"
|
||||
autocomplete="username"
|
||||
required
|
||||
@ -98,6 +99,7 @@ export function LoginForm({ onRegister }: { onRegister?: () => void }): VNode {
|
||||
name="password"
|
||||
id="password"
|
||||
autocomplete="current-password"
|
||||
enterkeyhint="send"
|
||||
value={password ?? ""}
|
||||
placeholder="Password"
|
||||
required
|
||||
|
Loading…
Reference in New Issue
Block a user