From f9eb9712b39ce94a9898daa281ddb0585198e3d9 Mon Sep 17 00:00:00 2001 From: Loic GUEGAN Date: Fri, 6 May 2016 14:39:30 +0200 Subject: Correct bug --- client/js/controllers/home/machineCreation.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'client/js/controllers') diff --git a/client/js/controllers/home/machineCreation.js b/client/js/controllers/home/machineCreation.js index aa488af..1b9fd7b 100644 --- a/client/js/controllers/home/machineCreation.js +++ b/client/js/controllers/home/machineCreation.js @@ -3,7 +3,7 @@ * * @param {$scope} $scope The $scope service from angular */ -mainApp.controller('machineCreationCtrl', ['$scope', 'Compute', '$rootScope', '$timeout', 'Identity', function ($scope, Compute, $rootScope, $timeout, Identity) +mainApp.controller('machineCreationCtrl', ['$scope', 'Compute', '$rootScope', '$timeout', 'Identity', 'Image', function ($scope, Compute, $rootScope, $timeout, Identity, Image) { $scope.name = ""; @@ -11,6 +11,9 @@ mainApp.controller('machineCreationCtrl', ['$scope', 'Compute', '$rootScope', '$ // When we need to show details of machine $scope.$on('showMachineCreationEvent', function (eventName, axioms) { $scope.axioms = axioms; + Image.getImages(function(response){ + $scope.images = Image.getData().images; + }); $('#machineCreationModal').modal({backdrop: false, keyboard: true}); }); -- cgit v1.2.3