From 924aba0e62276451dbcafff5f6e1976db75473a9 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 16 Jan 2018 13:46:12 +0100 Subject: [PATCH] add callback if tx canceled --- src/app/execution/txRunner.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/execution/txRunner.js b/src/app/execution/txRunner.js index 951c4c448f..1a92680a91 100644 --- a/src/app/execution/txRunner.js +++ b/src/app/execution/txRunner.js @@ -133,7 +133,12 @@ TxRunner.prototype.execute = function (args, callback) { { label: 'Confirm', fn: () => { execute() - }}) + }}, { + label: 'Cancel', + fn: () => { + return callback('Transaction canceled by user.') + } + }) } else { execute() }