From 135353d5b27fcffdcf1c006209a2eea63f051e8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Mon, 4 Jul 2016 13:42:49 +0200 Subject: [PATCH] Fix activity-link registry --- .../app/components/wp-activity/activity-link-directive.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/app/components/wp-activity/activity-link-directive.js b/frontend/app/components/wp-activity/activity-link-directive.js index c0439e4bba..fcdfd5d3e3 100644 --- a/frontend/app/components/wp-activity/activity-link-directive.js +++ b/frontend/app/components/wp-activity/activity-link-directive.js @@ -1,4 +1,4 @@ -module.exports = function() { +function activityLink() { return { restrict: 'E', templateUrl: '/templates/work_packages/activities/_link.html', @@ -13,4 +13,8 @@ module.exports = function() { scope.activityHtmlId = 'activity-' + scope.activityNo; } }; -}; +} + +angular + .module('openproject.workPackages.activities') + .directive('activityLink', activityLink);