From 26ebbea1e528448cf56161d8c9f444882633ca92 Mon Sep 17 00:00:00 2001 From: Bram Pauwelyn Date: Thu, 7 Mar 2024 15:50:51 +0100 Subject: [PATCH] III-6019 - Uncomment code --- .../save-search-modal.controller.js | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/saved-searches/components/save-search-modal.controller.js b/src/saved-searches/components/save-search-modal.controller.js index a8a0b8bf..8da3e2ef 100644 --- a/src/saved-searches/components/save-search-modal.controller.js +++ b/src/saved-searches/components/save-search-modal.controller.js @@ -41,23 +41,23 @@ function SaveSearchModalController($scope, udbApi, $q, $uibModalInstance, $trans $scope.activeTabId = tabId; }; - // var getSavedSearches = function () { - // return udbApi.getSavedSearches().then(function (data) { - // var withTranslation = data.map(function (savedSearch) { - // var key = 'search.savedSearches.items.' + savedSearch.name.toString(); - // var translated = $translate.instant(key); - // if (translated !== key) { - // savedSearch.name = translated; - // } - // return savedSearch; - // }); - // return $q.resolve(withTranslation); - // }); - // }; + var getSavedSearches = function () { + return udbApi.getSavedSearches().then(function (data) { + var withTranslation = data.map(function (savedSearch) { + var key = 'search.savedSearches.items.' + savedSearch.name.toString(); + var translated = $translate.instant(key); + if (translated !== key) { + savedSearch.name = translated; + } + return savedSearch; + }); + return $q.resolve(withTranslation); + }); + }; - // getSavedSearches().then(function (savedSearches) { - // $scope.savedSearches = savedSearches; - // }); + getSavedSearches().then(function (savedSearches) { + $scope.savedSearches = savedSearches; + }); var setQueryName = function() { var selectedSavedSearch = $scope.savedSearches.find(function(savedSearch) {