taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit b2c37bdbcbc97be082b4d771bfd5f269cfca7e1f
parent 15015dfbbfc25927685c0b1ff5e989ebd4681d48
Author: Sebastian <sebasjm@taler-systems.com>
Date:   Wed, 22 Jul 2026 16:16:55 -0300

show pwd when user is created

Diffstat:
Mpackages/libeufin-bank-webui/src/pages/admin/CreateNewAccount.tsx | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/packages/libeufin-bank-webui/src/pages/admin/CreateNewAccount.tsx b/packages/libeufin-bank-webui/src/pages/admin/CreateNewAccount.tsx @@ -53,7 +53,7 @@ export function CreateNewAccount({ TalerCorebankApi.RegisterAccountRequest | undefined >(); - const { actionHandler, showError } = useNotificationContext(); + const { actionHandler, showError, showSuccess } = useNotificationContext(); // i18n.str`create account`, const create = actionHandler( @@ -62,10 +62,10 @@ export function CreateNewAccount({ ? undefined : ([{ type: "bearer", token }, submitAccount] as const), ); - create.onSuccess = (success, token, account) => { - // notifyInfo(i18n.str`Account created with password "${account.password}".`); + create.onSuccess = showSuccess((success, token, account) => { onCreateSuccess(); - }; + return i18n.str`Account created with password "${account.password}".`; + }); create.onFail = showError( i18n.str`Failed to create a new account.`,