diff --git a/src/app/debugger/debuggerUI/TxBrowser.js b/src/app/debugger/debuggerUI/TxBrowser.js index f9c9f74bdd..12abb5137a 100644 --- a/src/app/debugger/debuggerUI/TxBrowser.js +++ b/src/app/debugger/debuggerUI/TxBrowser.js @@ -62,6 +62,9 @@ TxBrowser.prototype.submit = function () { TxBrowser.prototype.updateTxN = function (ev) { this.state.txNumber = ev.target.value + if (this.view) { + yo.update(this.view, this.render()) + } } TxBrowser.prototype.load = function (txHash, tx) { @@ -81,6 +84,7 @@ TxBrowser.prototype.setState = function (state) { TxBrowser.prototype.render = function () { var self = this + let action = yo`` var view = yo`
@@ -94,7 +98,7 @@ TxBrowser.prototype.render = function () { />
- + ${action}
@@ -102,6 +106,9 @@ TxBrowser.prototype.render = function () { if (this.state.debugging) { view.querySelectorAll('input').forEach(element => { element.setAttribute('disabled', '') }) } + if (!this.state.txNumber) { + action.setAttribute('disabled', 'disabled') + } if (!this.view) { this.view = view }