diff options
Diffstat (limited to 'packages/demobank-ui/src')
-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 |