OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/app/assets/javascripts/angular/directives/timelines/timeline-grouping-label-dir...

15 lines
465 B

angular.module('openproject.timelines.directives')
.directive('timelineGroupingLabel', [function() {
return {
restrict: 'A',
scope: true,
link: function(scope, element, attributes) {
scope.showGroupingLabel = function() {
return !scope.$first && scope.row.firstLevelGroup !== scope.rows[scope.$index-1].firstLevelGroup;
};
}
};
// TODO restrict to 'E' once https://github.com/angular/angular.js/issues/1459 is solved
}]);