Skip to content

Commit

Permalink
[Time Conductor] Added mode class to time conductor
Browse files Browse the repository at this point in the history
  • Loading branch information
akhenry committed Jul 11, 2016
1 parent 4e7b69c commit 5cc81ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions platform/features/conductor-v2/src/TimeConductorController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5cc81ba

Please sign in to comment.