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

21 lines
434 B

angular.module('openproject.uiComponents')
.factory('WorkPackagesHelper', [function() {
var WorkPackagesHelper = {
getRowObjectContent: function(object, option) {
var content = object[option];
switch(typeof(content)) {
case 'string':
return content;
case 'object':
return content.name;
default:
return '';
}
}
};
return WorkPackagesHelper;
}]);