From 05d42a342b91636d388bd67efe414e4c87df4cf4 Mon Sep 17 00:00:00 2001 From: ninabreznik Date: Thu, 10 May 2018 00:59:46 -0400 Subject: [PATCH] Reset recorder after transactions recorded --- src/app/tabs/run-tab.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/tabs/run-tab.js b/src/app/tabs/run-tab.js index cfda58271b..a67608e4fd 100644 --- a/src/app/tabs/run-tab.js +++ b/src/app/tabs/run-tab.js @@ -225,6 +225,7 @@ function makeRecorder (appAPI, appEvents, opts, self) { modalDialogCustom.alert('Failed to create file ' + newFile) } else { appAPI.switchFile(newFile) + self._view.recorderCount.innerText = 0 } }) } @@ -232,6 +233,11 @@ function makeRecorder (appAPI, appEvents, opts, self) { } runButton.onclick = () => { + /* + @TODO + update account address in scenario.json + popup if scenario.json not open - "Open a file with transactions you want to replay and click play again" + */ var currentFile = appAPI.config.get('currentFile') appAPI.fileProviderOf(currentFile).get(currentFile, (error, json) => { if (error) {