From 3333acdf18ee4a1064705911a4bef5f59df0fe72 Mon Sep 17 00:00:00 2001 From: jtaavola Date: Fri, 14 Feb 2025 23:31:38 -0600 Subject: [PATCH] add ability to close 'failed to zap' modal --- src/components/Note/NoteFooter/ArticleFooter.tsx | 2 ++ src/components/Note/NoteFooter/NoteFooter.tsx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/components/Note/NoteFooter/ArticleFooter.tsx b/src/components/Note/NoteFooter/ArticleFooter.tsx index 88f6936f..7c63b1ba 100644 --- a/src/components/Note/NoteFooter/ArticleFooter.tsx +++ b/src/components/Note/NoteFooter/ArticleFooter.tsx @@ -331,6 +331,8 @@ const ArticleFooter: Component<{ title: "Failed to zap", description: lastZapError, confirmLabel: "ok", + abortLabel: "Cancel", + onAbort: app?.actions.closeConfirmModal, }) } diff --git a/src/components/Note/NoteFooter/NoteFooter.tsx b/src/components/Note/NoteFooter/NoteFooter.tsx index db7f37dc..519f6d79 100644 --- a/src/components/Note/NoteFooter/NoteFooter.tsx +++ b/src/components/Note/NoteFooter/NoteFooter.tsx @@ -351,6 +351,8 @@ const NoteFooter: Component<{ title: "Failed to zap", description: lastZapError, confirmLabel: "ok", + abortLabel: "Cancel", + onAbort: app?.actions.closeConfirmModal, }) }