X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=validation.git;a=blobdiff_plain;f=ui%2Fsrc%2Fmain%2Fwebapp%2Fapp%2FBluvalUI%2FGetMostRecent%2FGetMostRecentController.js;fp=ui%2Fsrc%2Fmain%2Fwebapp%2Fapp%2FBluvalUI%2FGetMostRecent%2FGetMostRecentController.js;h=9e636b5686ecda1168217b02a1372c498bb4a6f4;hp=76307eba99510f0bdeee3e7ec77d8efe7688eb66;hb=147ecf7bf79ea9967a121d0038103151a38ebef2;hpb=e6b82a7ccd840c8b089ae4d5e69930fd0dd5ef35 diff --git a/ui/src/main/webapp/app/BluvalUI/GetMostRecent/GetMostRecentController.js b/ui/src/main/webapp/app/BluvalUI/GetMostRecent/GetMostRecentController.js index 76307eb..9e636b5 100644 --- a/ui/src/main/webapp/app/BluvalUI/GetMostRecent/GetMostRecentController.js +++ b/ui/src/main/webapp/app/BluvalUI/GetMostRecent/GetMostRecentController.js @@ -26,8 +26,11 @@ app.controller('GetMostRecentController', function($scope, restAPISvc, $window, $scope.loadingBlueprints = false; $scope.loadingVersions = false; $scope.loadingResults = 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; }); }