diff options
author | Sebastian <sebasjm@gmail.com> | 2023-02-17 16:29:09 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-02-17 16:29:09 -0300 |
commit | a45759e2adfd3bd6955d4135ee5e7ead1eac826c (patch) | |
tree | 6df9bb2d6cb3c275883dad676901fe2e7c58d1b0 | |
parent | 9697e953f56dc37208c2852d686d1854256f71ef (diff) |
fix #7695
5 files changed, 27 insertions, 9 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/TransferCreate/state.ts b/packages/taler-wallet-webextension/src/cta/TransferCreate/state.ts index b306ca122..24eead099 100644 --- a/packages/taler-wallet-webextension/src/cta/TransferCreate/state.ts +++ b/packages/taler-wallet-webextension/src/cta/TransferCreate/state.ts @@ -14,9 +14,7 @@ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -import { - Amounts, TalerProtocolTimestamp -} from "@gnu-taler/taler-util"; +import { Amounts, TalerProtocolTimestamp } from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; import { isFuture, parse } from "date-fns"; import { useState } from "preact/hooks"; diff --git a/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts b/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts index 6b50faf10..3c7b6cd4c 100644 --- a/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts +++ b/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts @@ -16,7 +16,8 @@ import { AbsoluteTime, - Amounts, TalerProtocolTimestamp + Amounts, + TalerProtocolTimestamp, } from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; import { alertFromError, useAlertContext } from "../../context/alert.js"; diff --git a/packages/taler-wallet-webextension/src/mui/Button.tsx b/packages/taler-wallet-webextension/src/mui/Button.tsx index aad8f5002..1af281d42 100644 --- a/packages/taler-wallet-webextension/src/mui/Button.tsx +++ b/packages/taler-wallet-webextension/src/mui/Button.tsx @@ -16,7 +16,12 @@ import { ComponentChildren, h, VNode, JSX } from "preact"; import { css } from "@linaria/core"; // eslint-disable-next-line import/extensions -import { theme, Colors, rippleEnabled, rippleEnabledOutlined } from "./style.js"; +import { + theme, + Colors, + rippleEnabled, + rippleEnabledOutlined, +} from "./style.js"; // eslint-disable-next-line import/extensions import { alpha } from "./colors/manipulation.js"; import { useState } from "preact/hooks"; diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx index fc94f977a..5fabfcd20 100644 --- a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx @@ -42,6 +42,7 @@ import { Amount } from "../components/Amount.js"; import { BankDetailsByPaytoType } from "../components/BankDetailsByPaytoType.js"; import { CopyButton } from "../components/CopyButton.js"; import { AlertView, ErrorAlertView } from "../components/CurrentAlerts.js"; +import { JustInDevMode } from "../components/JustInDevMode.js"; import { Loading } from "../components/Loading.js"; import { Kind, Part, PartCollapsible, PartPayto } from "../components/Part.js"; import { QR } from "../components/QR.js"; @@ -362,7 +363,20 @@ function TransactionTemplate({ > <i18n.Translate>Cancel</i18n.Translate> </Button> - ) : undefined + ) : ( + //WORKAROUND + //Able to delete tx in dev mode + //FIXME: remove this when DD37 is implemented + <JustInDevMode> + <Button + variant="contained" + color="error" + onClick={doCheckBeforeForget as SafeHandler<void>} + > + <i18n.Translate>Forget</i18n.Translate> + </Button> + </JustInDevMode> + ) ) : ( <Button variant="contained" diff --git a/packages/taler-wallet-webextension/src/wxApi.ts b/packages/taler-wallet-webextension/src/wxApi.ts index 5f3d09619..98ed72f50 100644 --- a/packages/taler-wallet-webextension/src/wxApi.ts +++ b/packages/taler-wallet-webextension/src/wxApi.ts @@ -29,18 +29,18 @@ import { NotificationType, TalerErrorCode, TalerErrorDetail, - WalletDiagnostics + WalletDiagnostics, } from "@gnu-taler/taler-util"; import { WalletCoreApiClient, WalletCoreOpKeys, WalletCoreRequestType, - WalletCoreResponseType + WalletCoreResponseType, } from "@gnu-taler/taler-wallet-core"; import { MessageFromBackend, MessageFromFrontendBackground, - MessageFromFrontendWallet + MessageFromFrontendWallet, } from "./platform/api.js"; import { platform } from "./platform/foreground.js"; |