From 21ed091ba6209d9c6fdaf9191412515a5f01d82f Mon Sep 17 00:00:00 2001 From: Loic GUEGAN Date: Fri, 6 May 2016 14:37:02 +0200 Subject: Correct bugs --- client/js/controllers/home/machineDetails.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'client/js/controllers/home') diff --git a/client/js/controllers/home/machineDetails.js b/client/js/controllers/home/machineDetails.js index 78aa532..21ed07c 100644 --- a/client/js/controllers/home/machineDetails.js +++ b/client/js/controllers/home/machineDetails.js @@ -3,7 +3,7 @@ * * @param {$scope} $scope The $scope service from angular */ -mainApp.controller('machineDetailsCtrl', ['$scope', 'Compute', '$rootScope', '$timeout', 'Identity', function ($scope, Compute, $rootScope, $timeout, Identity) +mainApp.controller('machineDetailsCtrl', ['$scope', 'Compute', '$rootScope', '$timeout', 'Identity', 'Image', function ($scope, Compute, $rootScope, $timeout, Identity, Image) { @@ -16,6 +16,9 @@ mainApp.controller('machineDetailsCtrl', ['$scope', 'Compute', '$rootScope', '$t $scope.machine = machine; // console.log(machine.flavor) $scope.axioms = axioms; + Image.getImages(function(response){ + $scope.images = Image.getData().images; + }); $('#machineDetailsModal').modal({backdrop: false, keyboard: true}); }); // Try to stop or start a machine -- cgit v1.2.3