From 9825471baa7690085365c18a50708818e791be68 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 16 Jan 2018 14:02:34 +0100 Subject: [PATCH] fix confirm tx setting --- src/app/execution/txRunner.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/execution/txRunner.js b/src/app/execution/txRunner.js index 88575891a0..748b65c900 100644 --- a/src/app/execution/txRunner.js +++ b/src/app/execution/txRunner.js @@ -110,9 +110,11 @@ TxRunner.prototype.execute = function (args, callback) { console.log(err) } else { if (network.name === 'Main') { - modalDialog('Confirm transaction', remixdDialog(tx, gasEstimation, self), + var content = confirmDialog(tx, gasEstimation, self) + modalDialog('Confirm transaction', content, { label: 'Confirm', fn: () => { + self.config.setUnpersistedProperty('doNotShowTransactionConfirmationAgain', content.querySelector('input#confirmsetting').checked) execute() }}, { label: 'Cancel', @@ -212,8 +214,8 @@ function run (self, tx, stamp, callback) { } } -function remixdDialog (tx, gasEstimation, self) { - var input = yo` { self.config.setUnpersistedProperty('doNotShowTransactionConfirmationAgain', this.checked) }}>` +function confirmDialog (tx, gasEstimation, self) { + var input = yo`` return yo`
You are creating a transaction on the main network. Click confirm if you are sure to continue.