diff --git a/src/app/tabs/run-tab.js b/src/app/tabs/run-tab.js index 0e5f14fe3f..ef1a5f896a 100644 --- a/src/app/tabs/run-tab.js +++ b/src/app/tabs/run-tab.js @@ -10,6 +10,7 @@ var executionContext = require('../../execution-context') var copyToClipboard = require('../ui/copy-to-clipboard') var Recorder = require('../../recorder') var EventManager = require('remix-lib').EventManager +var addTooltip = require('../ui/tooltip') // -------------- styling ---------------------- var csjs = require('csjs-inject') @@ -270,7 +271,7 @@ function fillAccountsList (appAPI, container) { var $txOrigin = $(container.querySelector('#txorigin')) $txOrigin.empty() appAPI.udapp().getAccounts((err, accounts) => { - if (err) { console.log(err) } + if (err) { addTooltip(`Cannot get account list: ${err}`) } if (accounts && accounts[0]) { for (var a in accounts) { $txOrigin.append($('`) + addTooltip(`account ${address} created`) } else { - modalDialogCustom.alert('Cannot create an account: ' + error) + addTooltip('Cannot create an account: ' + error) } }) }