Commit d3f25cf5 authored by yann300's avatar yann300

disable button nextCall, jumpOut if applicable

parent e0005aa2
......@@ -54,11 +54,9 @@ ButtonNavigator.prototype.reset = function () {
ButtonNavigator.prototype.stepChanged = function (step) {
this.intoBackDisabled = step <= 0
this.overBackDisabled = step <= 0
this.jumpOutDisabled = step <= 0
if (!this.traceManager) {
this.intoForwardDisabled = true
this.overForwardDisabled = true
this.nextCallDisabled = true
} else {
var self = this
this.traceManager.getLength(function (error, length) {
......@@ -68,7 +66,10 @@ ButtonNavigator.prototype.stepChanged = function (step) {
} else {
self.intoForwardDisabled = step >= length - 1
self.overForwardDisabled = step >= length - 1
self.nextCallDisabled = step >= length - 1
var nextCall = self.traceManager.findNextCall(step)
self.nextCallDisabled = nextCall === step
var stepOut = self.traceManager.findStepOut(step)
self.jumpOutDisabled = stepOut === step
}
self.updateAll()
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment