diff options
Diffstat (limited to 'packages/taler-wallet-webextension')
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 index ec0106f6e..0e8561016 100644 --- 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 index 81caf9878..027368a91 100644 --- 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 index 8bae9470f..64e2f4d80 100644 --- 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 index d171ecbac..d853f9a5c 100644 --- 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 index 6c0f37471..23aeb259c 100644 --- 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 index 297e8a56b..9d402b483 100644 --- 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 index 06ef80760..db3e85000 100644 --- 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 index 8d31223ed..4ceaad010 100644 --- 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} /> |