Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
adding service binder again
Browse files Browse the repository at this point in the history
  • Loading branch information
ramirezg committed Aug 10, 2015
1 parent 4143ff3 commit b5cf64c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions static/app/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,18 @@
// Only render while we are not updating an app ourselves.
if ($cloudfoundry.getPollAppStatusProperty() === true) {
$scope.appSummary = appSummary;
// Show the available services
$cloudfoundry.getSpaceServices($routeParams['spaceguid']).then(function(services) {
// Add a tag to services if they are bound
$scope.availableServices = services.map(function(service) {
$scope.appSummary.services.forEach(function(boundService) {
if (boundService.guid == service.metadata.guid) {
service.boundService = boundService;
};
});
return service;
});
});
}
};
var renderAppStats = function(appStats) {
Expand Down

0 comments on commit b5cf64c

Please sign in to comment.