[Time Conductor] Added mode class to time conductor

This commit is contained in:
Henry 2016-07-11 10:26:34 -07:00
parent 4e7b69c4df
commit 5cc81ba12a
2 changed files with 3 additions and 1 deletions
platform/features/conductor-v2

View File

@ -28,7 +28,7 @@
</style>
<!-- Parent holder for time conductor. follow-mode | fixed-mode -->
<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 -->
<div class="l-conductor-dates">
<form class="l-time-range-inputs-holder l-flex-row flex-elem"

View File

@ -89,6 +89,8 @@ define(
var now = Math.ceil(Date.now() / 1000) * 1000;
//Set the time conductor to some default
this.conductor.bounds({start: now - SIX_HOURS, end: now});
this.$scope.modeModel.selected = 'fixed';
this.conductor.follow(false);
};
TimeConductorController.prototype.validateStart = function (start) {