X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=validation.git;a=blobdiff_plain;f=ui%2Fsrc%2Fmain%2Fwebapp%2Fapp%2FBluvalUI%2FGetBasedOnDate%2FGetBasedOnDateController.js;h=d6bf3dacbb196f921ede157737aef1d0c8f6044a;hp=607634b64968808f4c6577a9ae5df2e32ec190bf;hb=147ecf7bf79ea9967a121d0038103151a38ebef2;hpb=e6b82a7ccd840c8b089ae4d5e69930fd0dd5ef35 diff --git a/ui/src/main/webapp/app/BluvalUI/GetBasedOnDate/GetBasedOnDateController.js b/ui/src/main/webapp/app/BluvalUI/GetBasedOnDate/GetBasedOnDateController.js index 607634b..d6bf3da 100644 --- a/ui/src/main/webapp/app/BluvalUI/GetBasedOnDate/GetBasedOnDateController.js +++ b/ui/src/main/webapp/app/BluvalUI/GetBasedOnDate/GetBasedOnDateController.js @@ -24,8 +24,11 @@ app.controller('GetBasedOnDateController', function($scope, restAPISvc, $scope.loadingLabs = true; $scope.loadingBlueprints = false; $scope.loadingVersions = false; - restAPISvc.getRestAPI("/api/v1/results/getlabs/", function(data) { - $scope.labs = data; + $scope.labs = []; + restAPISvc.getRestAPI("/api/v1/lab/", function(data) { + angular.forEach(data, function(lab) { + $scope.labs.push(lab.lab); + }); $scope.loadingLabs = false; }); }