don't display provider url

pull/1/head
yann300 6 years ago
parent 88af44035e
commit d44857ae8e
  1. 2
      src/app/debugger/remix-debugger/src/ui/EthdebuggerUI.js
  2. 5
      src/app/debugger/remix-debugger/src/ui/TxBrowser.js

@ -56,7 +56,7 @@ function EthdebuggerUI (opts) {
self.updateWeb3Reference() self.updateWeb3Reference()
}, 10000) }, 10000)
this.txBrowser = new TxBrowser(this) this.txBrowser = new TxBrowser(this, {displayConnectionSetting: false})
this.txBrowser.event.register('newTxLoading', this, function () { this.txBrowser.event.register('newTxLoading', this, function () {
self.unLoad() self.unLoad()
}) })

@ -42,17 +42,16 @@ var css = csjs`
margin-bottom: 10px; margin-bottom: 10px;
} }
` `
function TxBrowser (_parent) { function TxBrowser (_parent, opts) {
this.event = new EventManager() this.event = new EventManager()
this.blockNumber this.blockNumber
this.txNumber this.txNumber
this.view this.view
this.displayConnectionSetting = true this.displayConnectionSetting = opts.displayConnectionSetting
this.web3 = _parent.debugger.web3 this.web3 = _parent.debugger.web3
var self = this var self = this
_parent.event.register('providerChanged', this, function (provider) { _parent.event.register('providerChanged', this, function (provider) {
self.displayConnectionSetting = provider === 'INTERNAL'
self.setDefaultValues() self.setDefaultValues()
if (self.view) { if (self.view) {
yo.update(self.view, self.render()) yo.update(self.view, self.render())

Loading…
Cancel
Save