fix #7695
This commit is contained in:
parent
9697e953f5
commit
a45759e2ad
@ -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";
|
||||
|
@ -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";
|
||||
|
@ -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";
|
||||
|
@ -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"
|
||||
|
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user