|
|
@ -28,23 +28,18 @@ |
|
|
|
|
|
|
|
|
|
|
|
angular.module('openproject.workPackages.controllers') |
|
|
|
angular.module('openproject.workPackages.controllers') |
|
|
|
|
|
|
|
|
|
|
|
.constant('DEFAULT_WORK_PACKAGE_PROPERTIES', [ |
|
|
|
|
|
|
|
'status', 'assignee', 'responsible', |
|
|
|
|
|
|
|
'date', 'percentageDone', 'priority', |
|
|
|
|
|
|
|
'estimatedTime', 'versionName' |
|
|
|
|
|
|
|
]) |
|
|
|
|
|
|
|
.constant('USER_TYPE', 'user') |
|
|
|
.constant('USER_TYPE', 'user') |
|
|
|
|
|
|
|
|
|
|
|
.controller('DetailsTabOverviewController', [ |
|
|
|
.controller('DetailsTabOverviewController', [ |
|
|
|
'$scope', |
|
|
|
'$scope', |
|
|
|
'I18n', |
|
|
|
'I18n', |
|
|
|
'DEFAULT_WORK_PACKAGE_PROPERTIES', |
|
|
|
'ConfigurationService', |
|
|
|
'USER_TYPE', |
|
|
|
'USER_TYPE', |
|
|
|
'CustomFieldHelper', |
|
|
|
'CustomFieldHelper', |
|
|
|
'WorkPackagesHelper', |
|
|
|
'WorkPackagesHelper', |
|
|
|
'UserService', |
|
|
|
'UserService', |
|
|
|
'$q', |
|
|
|
'$q', |
|
|
|
function($scope, I18n, DEFAULT_WORK_PACKAGE_PROPERTIES, USER_TYPE, CustomFieldHelper, WorkPackagesHelper, UserService, $q) { |
|
|
|
function($scope, I18n, ConfigurationService, USER_TYPE, CustomFieldHelper, WorkPackagesHelper, UserService, $q) { |
|
|
|
|
|
|
|
|
|
|
|
// work package properties
|
|
|
|
// work package properties
|
|
|
|
|
|
|
|
|
|
|
@ -52,7 +47,7 @@ angular.module('openproject.workPackages.controllers') |
|
|
|
$scope.emptyWorkPackageProperties = []; |
|
|
|
$scope.emptyWorkPackageProperties = []; |
|
|
|
$scope.userPath = PathHelper.staticUserPath; |
|
|
|
$scope.userPath = PathHelper.staticUserPath; |
|
|
|
|
|
|
|
|
|
|
|
var workPackageProperties = DEFAULT_WORK_PACKAGE_PROPERTIES; |
|
|
|
var workPackageProperties = ConfigurationService.workPackageAttributes(); |
|
|
|
|
|
|
|
|
|
|
|
function getPropertyValue(property, format) { |
|
|
|
function getPropertyValue(property, format) { |
|
|
|
if (format === USER_TYPE) { |
|
|
|
if (format === USER_TYPE) { |
|
|
|