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/helpers/work-packages-table-helper.js

19 lines
465 B

openprojectApp.factory('WorkPackagesTableHelper', [function() {
var WorkPackagesTableHelper = {
getRows: function(workPackages) {
return workPackages.map(function(workPackage){
return {
level: 0, // TODO retrieve level from ancestors size
group: 0,
groupName: '',
parent: null,
ancestors: [],
object: workPackage
};
});
}
};
return WorkPackagesTableHelper;
}]);