Rename refactoring

pull/1631/head
Hagen Schink 10 years ago
parent 7552d84b7a
commit 7bbb6fe88c
  1. 2
      app/assets/javascripts/angular/helpers/components/work-packages-helper.js
  2. 15
      app/assets/javascripts/angular/work_packages/controllers/work-package-details-controller.js

@ -137,7 +137,7 @@ angular.module('openproject.workPackages.helpers')
return id; return id;
}, },
getRelationOfType: function(workPackage, type) { getRelationsOfType: function(workPackage, type) {
var self = workPackage.links.self.href; var self = workPackage.links.self.href;
var relations = workPackage.embedded.relations; var relations = workPackage.embedded.relations;
var result = []; var result = [];

@ -166,13 +166,14 @@ angular.module('openproject.workPackages.controllers')
$scope.attachments = workPackage.embedded.attachments; $scope.attachments = workPackage.embedded.attachments;
// relations // relations
$scope.relatedTo = WorkPackagesHelper.getRelationOfType(workPackage, "Relation::Relates"); $scope.relatedTo = WorkPackagesHelper.getRelationsOfType(workPackage, "Relation::Relates");
$scope.duplicates = WorkPackagesHelper.getRelationOfType(workPackage, "Relation::Duplicates"); $scope.duplicates = WorkPackagesHelper.getRelationsOfType(workPackage, "Relation::Duplicates");
$scope.duplicated = WorkPackagesHelper.getRelationOfType(workPackage, "Relation::Duplicated"); $scope.duplicated = WorkPackagesHelper.getRelationsOfType(workPackage, "Relation::Duplicated");
$scope.blocks = WorkPackagesHelper.getRelationOfType(workPackage, "Relation::Blocks"); $scope.blocks = WorkPackagesHelper.getRelationsOfType(workPackage, "Relation::Blocks");
$scope.blocked = WorkPackagesHelper.getRelationOfType(workPackage, "Relation::Blocked"); $scope.blocked = WorkPackagesHelper.getRelationsOfType(workPackage, "Relation::Blocked");
$scope.precedes = WorkPackagesHelper.getRelationOfType(workPackage, "Relation::Precedes"); $scope.precedes = WorkPackagesHelper.getRelationsOfType(workPackage, "Relation::Precedes");
$scope.follows = WorkPackagesHelper.getRelationOfType(workPackage, "Relation::Follows"); $scope.follows = WorkPackagesHelper.getRelationsOfType(workPackage, "Relation::Follows");
// Author // Author
$scope.author = workPackage.embedded.author; $scope.author = workPackage.embedded.author;

Loading…
Cancel
Save