Use addTooltip instead of alert

pull/3094/head
yann300 5 years ago committed by GitHub
parent fad62985d8
commit d4d88040a6
  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