diff --git a/src/app/debugger/remix-debugger/src/ui/EthdebuggerUI.js b/src/app/debugger/remix-debugger/src/ui/EthdebuggerUI.js index 3e00d2d640..2d705774b7 100644 --- a/src/app/debugger/remix-debugger/src/ui/EthdebuggerUI.js +++ b/src/app/debugger/remix-debugger/src/ui/EthdebuggerUI.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() }) diff --git a/src/app/debugger/remix-debugger/src/ui/TxBrowser.js b/src/app/debugger/remix-debugger/src/ui/TxBrowser.js index 58c315eaee..14f43101ce 100644 --- a/src/app/debugger/remix-debugger/src/ui/TxBrowser.js +++ b/src/app/debugger/remix-debugger/src/ui/TxBrowser.js @@ -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())