mirror of
https://github.com/nasa/openmct.git
synced 2024-12-25 15:51:04 +00:00
[Time Conductor] Added mode class to time conductor
This commit is contained in:
parent
4e7b69c4df
commit
5cc81ba12a
@ -28,7 +28,7 @@
|
|||||||
</style>
|
</style>
|
||||||
<!-- Parent holder for time conductor. follow-mode | fixed-mode -->
|
<!-- Parent holder for time conductor. follow-mode | fixed-mode -->
|
||||||
<div ng-controller="TimeConductorController as tcController"
|
<div ng-controller="TimeConductorController as tcController"
|
||||||
class="l-flex-col" ng-class="{'follow-mode': followMode}">
|
class="l-flex-col {{modeModel.selected}}-mode">
|
||||||
<!-- Holds date selectors and ticks -->
|
<!-- Holds date selectors and ticks -->
|
||||||
<div class="l-conductor-dates">
|
<div class="l-conductor-dates">
|
||||||
<form class="l-time-range-inputs-holder l-flex-row flex-elem"
|
<form class="l-time-range-inputs-holder l-flex-row flex-elem"
|
||||||
|
@ -89,6 +89,8 @@ define(
|
|||||||
var now = Math.ceil(Date.now() / 1000) * 1000;
|
var now = Math.ceil(Date.now() / 1000) * 1000;
|
||||||
//Set the time conductor to some default
|
//Set the time conductor to some default
|
||||||
this.conductor.bounds({start: now - SIX_HOURS, end: now});
|
this.conductor.bounds({start: now - SIX_HOURS, end: now});
|
||||||
|
this.$scope.modeModel.selected = 'fixed';
|
||||||
|
this.conductor.follow(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
TimeConductorController.prototype.validateStart = function (start) {
|
TimeConductorController.prototype.validateStart = function (start) {
|
||||||
|
Loading…
Reference in New Issue
Block a user