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/controllers/work-packages-controller.js

15 lines
559 B

angular.module('openproject.workPackages.controllers')
.controller('WorkPackagesController', ['$scope', 'WorkPackagesTableHelper', function($scope, WorkPackagesTableHelper) {
$scope.projectIdentifier = gon.project_identifier;
$scope.query = gon.query;
$scope.groupBy = $scope.query.group_by;
$scope.currentSortation = gon.sort_criteria;
$scope.workPackageCountByGroup = gon.work_package_count_by_group;
$scope.workPackagesTable = {
columns: gon.columns,
rows: WorkPackagesTableHelper.getRows(gon.work_packages, $scope.groupBy)
};
}]);