diff options
author | Sebastian <sebasjm@gmail.com> | 2023-07-10 09:43:27 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-07-10 09:43:27 -0300 |
commit | bf3e99ea27ef7321a05a7a0a422ab9d1a48d52a3 (patch) | |
tree | 4908734ab3d6b953d7f8994b7f7807cf4cfc1983 | |
parent | f6b63a691b63ac2fab335cde3307f8d2b966a558 (diff) | |
download | wallet-core-bf3e99ea27ef7321a05a7a0a422ab9d1a48d52a3.tar.xz |
show testing tag
-rw-r--r-- | packages/demobank-ui/src/pages/BankFrame.tsx | 23 | ||||
-rw-r--r-- | packages/demobank-ui/src/pages/LoginForm.tsx | 2 |
2 files changed, 24 insertions, 1 deletions
diff --git a/packages/demobank-ui/src/pages/BankFrame.tsx b/packages/demobank-ui/src/pages/BankFrame.tsx index babc4b867..c7168ac6d 100644 --- a/packages/demobank-ui/src/pages/BankFrame.tsx +++ b/packages/demobank-ui/src/pages/BankFrame.tsx @@ -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> + ); +} diff --git a/packages/demobank-ui/src/pages/LoginForm.tsx b/packages/demobank-ui/src/pages/LoginForm.tsx index 54f4fe6f1..d2cb1bd8e 100644 --- a/packages/demobank-ui/src/pages/LoginForm.tsx +++ b/packages/demobank-ui/src/pages/LoginForm.tsx @@ -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 |