From a45759e2adfd3bd6955d4135ee5e7ead1eac826c Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Fri, 17 Feb 2023 16:29:09 -0300
Subject: fix #7695

---
 .../taler-wallet-webextension/src/wallet/Transaction.tsx | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

(limited to 'packages/taler-wallet-webextension/src/wallet/Transaction.tsx')

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"
-- 
cgit v1.2.3

