Fixed loss of time system options on navigation

This commit is contained in:
Henry 2016-08-03 20:16:03 -07:00
parent 6b482d487b
commit 25b9f371e2

View File

@ -120,6 +120,13 @@ define(
$scope.formModel.startDelta = deltas.start; $scope.formModel.startDelta = deltas.start;
$scope.formModel.endDelta = deltas.end; $scope.formModel.endDelta = deltas.end;
} }
// Show filtered list of time systems available for the
// current mode
var tickSourceType = this.modes[mode.key()].tickSourceType;
$scope.timeSystemModel.options = this.timeSystemsForSourceType(tickSourceType).map(function (t) {
return t.metadata;
});
} else { } else {
// Default to fixed mode // Default to fixed mode
this.setMode('fixed'); this.setMode('fixed');