show testing tag
This commit is contained in:
parent
f6b63a691b
commit
bf3e99ea27
@ -165,7 +165,8 @@ export function BankFrame({
|
|||||||
</div>
|
</div>
|
||||||
<div style="flex-grow:1" />
|
<div style="flex-grow:1" />
|
||||||
<p>
|
<p>
|
||||||
Copyright © 2014—2022 Taler Systems SA. {versionText}
|
Copyright © 2014—2022 Taler Systems SA. {versionText}{" "}
|
||||||
|
<TestingTag />
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@ -299,3 +300,23 @@ function StatusBanner(): VNode | null {
|
|||||||
</div>
|
</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"
|
name="username"
|
||||||
id="username"
|
id="username"
|
||||||
value={username ?? ""}
|
value={username ?? ""}
|
||||||
|
enterkeyhint="next"
|
||||||
placeholder="Username"
|
placeholder="Username"
|
||||||
autocomplete="username"
|
autocomplete="username"
|
||||||
required
|
required
|
||||||
@ -98,6 +99,7 @@ export function LoginForm({ onRegister }: { onRegister?: () => void }): VNode {
|
|||||||
name="password"
|
name="password"
|
||||||
id="password"
|
id="password"
|
||||||
autocomplete="current-password"
|
autocomplete="current-password"
|
||||||
|
enterkeyhint="send"
|
||||||
value={password ?? ""}
|
value={password ?? ""}
|
||||||
placeholder="Password"
|
placeholder="Password"
|
||||||
required
|
required
|
||||||
|
Loading…
Reference in New Issue
Block a user