- {settings.showInstallWallet &&
-
-
-
-
- You need a GNU Taler Wallet
-
-
-
-
- If you dont have one yet you can follow the instruction here
-
-
-
-
-
-
-
-
-
-
}
+ {settings.showInstallWallet &&
+
{
+ updateSettings("showInstallWallet", false);
+ }}>
+
+ If you don't have one yet you can follow the instruction here
+
+
+ }
{!settings.fastWithdrawal ?
{
return {
@@ -87,7 +89,9 @@ export function WithdrawalConfirmationQuestion({
await confirmWithdrawal(
withdrawUri.withdrawalOperationId,
);
- notifyInfo(i18n.str`Wire transfer completed!`)
+ if (!settings.showWithdrawalSuccess) {
+ notifyInfo(i18n.str`Wire transfer completed!`)
+ }
} catch (error) {
if (error instanceof RequestError) {
notify(
@@ -203,7 +207,7 @@ export function WithdrawalConfirmationQuestion({
-
Answer the next question to authorize the wire transfer
+ Answer the next question to authorize the wire transfer.
Amount
- {Amounts.stringifyValue(details.amount)}
+ {Amounts.currencyOf(details.amount)} {Amounts.stringifyValue(details.amount)}
diff --git a/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx b/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx
index 8f4e175f6..c8efc033b 100644
--- a/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx
+++ b/packages/demobank-ui/src/pages/WithdrawalQRCode.tsx
@@ -94,20 +94,12 @@ export function WithdrawalQRCode({
- Withdrawal OK
+ Withdrawal confirmed
- The wire transfer to the Taler exchange bank's account is completed, now the
- exchange will send the requested amount into your GNU Taler wallet.
-
-
-
-
-
-
- You can close this page now or continue to the account page.
+ The wire transfer to the Taler operator has been initiated. You will soon receive the requested amount in your Taler wallet.
diff --git a/packages/demobank-ui/src/pages/admin/AccountForm.tsx b/packages/demobank-ui/src/pages/admin/AccountForm.tsx
index 02df824a2..ed8bf610d 100644
--- a/packages/demobank-ui/src/pages/admin/AccountForm.tsx
+++ b/packages/demobank-ui/src/pages/admin/AccountForm.tsx
@@ -4,6 +4,7 @@ import { PartialButDefined, RecursivePartial, WithIntermediate, undefinedIfEmpty
import { useEffect, useRef, useState } from "preact/hooks";
import { useTranslationContext } from "@gnu-taler/web-util/browser";
import { buildPayto, parsePaytoUri } from "@gnu-taler/taler-util";
+import { doAutoFocus } from "../PaytoWireTransferForm.js";
const IBAN_REGEX = /^[A-Z][A-Z0-9]*$/;
const EMAIL_REGEX =
@@ -37,10 +38,6 @@ export function AccountForm({
RecursivePartial
| undefined
>(undefined);
const { i18n } = useTranslationContext();
- const ref = useRef(null);
- useEffect(() => {
- if (focus) ref.current?.focus();
- }, [focus]);
function updateForm(newForm: typeof initial): void {
@@ -97,7 +94,6 @@ export function AccountForm({
-