mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 05:37:53 +00:00
[Time Conductor] Update displayed text when format changes
This commit is contained in:
parent
3bdaae292e
commit
82b321b3f9
@ -267,20 +267,15 @@ define(
|
||||
}
|
||||
}
|
||||
|
||||
function reinitializeBounds(now, increment) {
|
||||
var end = Math.ceil(now / increment) * increment,
|
||||
start = end - increment;
|
||||
$scope.ngModel.outer.start = start;
|
||||
$scope.ngModel.outer.end = end;
|
||||
$scope.ngModel.inner.start = start;
|
||||
$scope.ngModel.inner.end = end;
|
||||
$scope.boundsModel = {};
|
||||
updateViewFromModel($scope.ngModel);
|
||||
}
|
||||
|
||||
function updateFormat(key) {
|
||||
formatter = formatService.getFormat(key) ||
|
||||
formatService.getFormat(DEFAULT_FORMAT);
|
||||
|
||||
// Assume that start/end are still valid, but clear
|
||||
// the displayed text for bounds, since this will
|
||||
// now be formatted differently.
|
||||
$scope.boundsModel = {};
|
||||
updateViewFromModel($scope.ngModel);
|
||||
}
|
||||
|
||||
function updateStartFromPicker(value) {
|
||||
|
Loading…
Reference in New Issue
Block a user