From d4d88040a6eb78d60c26cb957d4e29d920447e4e Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 13 Aug 2019 11:49:15 +0200 Subject: [PATCH] Use addTooltip instead of alert --- src/app/tabs/runTab/settings.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app/tabs/runTab/settings.js b/src/app/tabs/runTab/settings.js index df7ebca5d9..b667614fb0 100644 --- a/src/app/tabs/runTab/settings.js +++ b/src/app/tabs/runTab/settings.js @@ -182,15 +182,13 @@ class SettingsUI { modal.hide() modalDialogCustom.prompt('External node request', 'Web3 Provider Endpoint', 'http://localhost:8545', (target) => { this.settings.setProviderFromEndpoint(target, context, (alertMsg) => { - if (alertMsg) { - modalDialogCustom.alert(alertMsg) - } + if (alertMsg) addTooltip(alertMsg) this.setFinalContext() }) }, this.setFinalContext.bind(this)) }, this.setFinalContext.bind(this)) }, (alertMsg) => { - modalDialogCustom.alert(alertMsg) + addTooltip(alertMsg) }, this.setFinalContext.bind(this)) })