parent
498aa98bde
commit
075debb280
@ -0,0 +1,14 @@ |
||||
timelinesApp |
||||
.filter('getOptionColumn', function() { |
||||
var map = { |
||||
"type": "getTypeName", |
||||
"status": "getStatusName", |
||||
"responsible": "getResponsibleName", |
||||
"assigned_to": "getAssignedName", |
||||
"project": "getProjectName" |
||||
}; |
||||
|
||||
return function(nodeData, option) { |
||||
return nodeData[map[option]](); |
||||
}; |
||||
}); |
Loading…
Reference in new issue