taler-typescript-core

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

commit f3dfd3da1bb16da110b1e83ebc075ed82dcf129e
parent 77a531ea7d4c1d73c4523ee5d9c5545ab4a9c6bf
Author: Sebastian <sebasjm@gmail.com>
Date:   Mon, 19 Feb 2024 11:15:19 -0300

fix wrong error messages

Diffstat:
Mpackages/taler-wallet-webextension/src/cta/Deposit/state.ts | 2+-
Mpackages/taler-wallet-webextension/src/cta/InvoiceCreate/state.ts | 8++++----
Mpackages/taler-wallet-webextension/src/cta/InvoicePay/state.ts | 2+-
Mpackages/taler-wallet-webextension/src/cta/Payment/state.ts | 2+-
Mpackages/taler-wallet-webextension/src/cta/Refund/state.ts | 2+-
Mpackages/taler-wallet-webextension/src/cta/TransferCreate/state.ts | 2+-
Mpackages/taler-wallet-webextension/src/cta/TransferPickup/state.ts | 2+-
Mpackages/taler-wallet-webextension/src/cta/Withdraw/views.tsx | 15+++++++++++++++
8 files changed, 25 insertions(+), 10 deletions(-)

diff --git a/packages/taler-wallet-webextension/src/cta/Deposit/state.ts b/packages/taler-wallet-webextension/src/cta/Deposit/state.ts @@ -48,7 +48,7 @@ export function useComponentState({ return { status: "error", error: alertFromError( - i18n.str`Could not load the status of the term of service`, + i18n.str`Could not load the status of deposit`, info, ), }; diff --git a/packages/taler-wallet-webextension/src/cta/InvoiceCreate/state.ts b/packages/taler-wallet-webextension/src/cta/InvoiceCreate/state.ts @@ -50,7 +50,7 @@ export function useComponentState({ return { status: "error", error: alertFromError( - i18n.str`Could not load the status of the term of service`, + i18n.str`Could not load the list of exchanges`, hook, ), }; @@ -103,7 +103,7 @@ export function useComponentState({ return { status: "error", error: alertFromError( - i18n.str`Could not load the status of the term of service`, + i18n.str`Could not load the invoice status`, hook, ), }; @@ -166,8 +166,8 @@ export function useComponentState({ subject === undefined ? undefined : !subject - ? "Can't be empty" - : undefined, + ? "Can't be empty" + : undefined, value: subject ?? "", onInput: pushAlertOnError(async (e) => setSubject(e)), }, diff --git a/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts b/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts @@ -64,7 +64,7 @@ export function useComponentState({ return { status: "error", error: alertFromError( - i18n.str`Could not load the status of the term of service`, + i18n.str`Could not load the transfer payment status`, hook, ), }; diff --git a/packages/taler-wallet-webextension/src/cta/Payment/state.ts b/packages/taler-wallet-webextension/src/cta/Payment/state.ts @@ -84,7 +84,7 @@ export function useComponentState({ return { status: "error", error: alertFromError( - i18n.str`Could not load the status of the term of service`, + i18n.str`Could not load the payment and balance status`, hook, ), }; diff --git a/packages/taler-wallet-webextension/src/cta/Refund/state.ts b/packages/taler-wallet-webextension/src/cta/Refund/state.ts @@ -72,7 +72,7 @@ export function useComponentState({ return { status: "error", error: alertFromError( - i18n.str`Could not load the status of the term of service`, + i18n.str`Could not load the refund status`, info, ), }; diff --git a/packages/taler-wallet-webextension/src/cta/TransferCreate/state.ts b/packages/taler-wallet-webextension/src/cta/TransferCreate/state.ts @@ -59,7 +59,7 @@ export function useComponentState({ return { status: "error", error: alertFromError( - i18n.str`Could not load the status of the term of service`, + i18n.str`Could not load the max amount to transfer`, hook, ), }; diff --git a/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts b/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts @@ -50,7 +50,7 @@ export function useComponentState({ return { status: "error", error: alertFromError( - i18n.str`Could not load the status of the term of service`, + i18n.str`Could not load the invoice payment status`, hook, ), }; diff --git a/packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx b/packages/taler-wallet-webextension/src/cta/Withdraw/views.tsx @@ -135,6 +135,7 @@ export function SuccessView(state: State.Success): VNode { </section> <section> + {/* <div> */} <TermsOfService exchangeUrl={state.currentExchange.exchangeBaseUrl}> <Button variant="contained" @@ -147,6 +148,20 @@ export function SuccessView(state: State.Success): VNode { </i18n.Translate> </Button> </TermsOfService> + {/* </div> + <div style={{ marginTop: 20 }}> + <Button + variant="text" + color="success" + + disabled={!state.doAbort.onClick} + onClick={state.doAbort.onClick} + > + <i18n.Translate> + Cancel + </i18n.Translate> + </Button> + </div> */} </section> {state.talerWithdrawUri ? ( <WithdrawWithMobile talerWithdrawUri={state.talerWithdrawUri} />