diff --git a/src/ui/ButtonNavigator.js b/src/ui/ButtonNavigator.js index c565fbf9c1..8c66404180 100644 --- a/src/ui/ButtonNavigator.js +++ b/src/ui/ButtonNavigator.js @@ -44,6 +44,14 @@ ButtonNavigator.prototype.render = function () { return view } +ButtonNavigator.prototype.reset = function () { + this.intoBackDisabled = true + this.overBackDisabled = true + this.intoForwardDisabled = true + this.overForwardDisabled = true + this.nextCallDisabled = true +} + ButtonNavigator.prototype.stepChanged = function (step) { this.intoBackDisabled = step <= 0 this.overBackDisabled = step <= 0 @@ -55,11 +63,7 @@ ButtonNavigator.prototype.stepChanged = function (step) { var self = this this.traceManager.getLength(function (error, length) { if (error) { - self.intoBackDisabled = true - self.overBackDisabled = true - self.intoForwardDisabled = true - self.overForwardDisabled = true - self.nextCallDisabled = true + self.reset() console.log(error) } else { self.intoForwardDisabled = step >= length - 1 diff --git a/src/ui/Ethdebugger.js b/src/ui/Ethdebugger.js index e59dc40b39..ec339d0148 100644 --- a/src/ui/Ethdebugger.js +++ b/src/ui/Ethdebugger.js @@ -81,7 +81,7 @@ Ethdebugger.prototype.debug = function (tx) { Ethdebugger.prototype.render = function () { var view = yo`