Correct bugs

This commit is contained in:
Loic GUEGAN 2016-05-06 14:37:02 +02:00
parent 2856a776db
commit 21ed091ba6
3 changed files with 12 additions and 8 deletions

View file

@ -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