Fix non-camelcased name.

Thanks, @houndci.
pull/3563/head
Tim Habermaas 9 years ago committed by Stefan Botzenhart
parent b3e431ce85
commit e5fceb38be
  1. 10
      frontend/app/work_packages/directives/work-package-column-directive.js

@ -114,18 +114,18 @@ module.exports = function(PathHelper, WorkPackagesHelper, UserService){
function displayDataAsLink(id) {
// Example of how we can look to the provided meta data to format the column
// This relies on the meta being sent from the server
var link_meta = scope.column.meta_data.link;
if (link_meta.model_type === 'work_package') {
var linkMeta = scope.column.meta_data.link;
if (linkMeta.model_type === 'work_package') {
scope.displayType = 'ref';
scope.stateRef = 'work-packages.show.activity({workPackageId: ' + id + '})';
} else {
scope.displayType = 'link';
scope.url = getLinkFor(id, link_meta);
scope.url = getLinkFor(id, linkMeta);
}
}
function getLinkFor(id, link_meta){
switch (link_meta.model_type) {
function getLinkFor(id, linkMeta){
switch (linkMeta.model_type) {
case 'user':
if (scope.workPackage[scope.column.name] && scope.workPackage[scope.column.name].type == 'Group') {
// if it's a group, we have nothing to link to

Loading…
Cancel
Save