diff --git a/web-ui/src/main/resources/catalog/components/admin/harvester/HarvesterDirective.js b/web-ui/src/main/resources/catalog/components/admin/harvester/HarvesterDirective.js index 813831f77f7..1045573c452 100644 --- a/web-ui/src/main/resources/catalog/components/admin/harvester/HarvesterDirective.js +++ b/web-ui/src/main/resources/catalog/components/admin/harvester/HarvesterDirective.js @@ -270,15 +270,15 @@ module.directive('gnHarvesterExtras', ['$http', '$translate', '$rootScope', function($http, $translate, $rootScope) { - return { restrict: 'A', replace: false, templateUrl: '../../catalog/components/admin/harvester/partials/' + 'extras.html', - + scope: { + harvester: '=gnHarvesterExtras' + }, link: function(scope, element, attrs) { - $http.get('../api/languages', {cache: true}) .success(function(data) { scope.languages = data; diff --git a/web-ui/src/main/resources/catalog/components/admin/harvester/partials/extras.html b/web-ui/src/main/resources/catalog/components/admin/harvester/partials/extras.html index 9aa72b91e6e..bdf7d34bf18 100644 --- a/web-ui/src/main/resources/catalog/components/admin/harvester/partials/extras.html +++ b/web-ui/src/main/resources/catalog/components/admin/harvester/partials/extras.html @@ -1,6 +1,10 @@ -