Merge pull request #2259 from ethereum/yann300-patch-64

Use addTooltip instead of alert
pull/1/head
yann300 5 years ago committed by GitHub
commit 67c15b2c5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      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))
})

Loading…
Cancel
Save