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()
}, 10000)
this.txBrowser = new TxBrowser(this)
this.txBrowser = new TxBrowser(this, {displayConnectionSetting: false})
this.txBrowser.event.register('newTxLoading', this, function () {
self.unLoad()
})

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

Loading…
Cancel
Save