diff options
| author | Loic GUEGAN <loic@Manzerbredes.home> | 2016-05-04 19:38:09 +0200 |
|---|---|---|
| committer | Loic GUEGAN <loic@Manzerbredes.home> | 2016-05-04 19:38:09 +0200 |
| commit | 0266c16ffc97042853916c390aaaccecc72e69a1 (patch) | |
| tree | aed361ca7133bdab46683d1ff9c3edf38048ef27 /client/js/controllers/home/machineCreation.js | |
| parent | f819bc0c909dd85c4d98c8fb870ce5c6fce37383 (diff) | |
Commit for testing
Diffstat (limited to 'client/js/controllers/home/machineCreation.js')
| -rw-r--r-- | client/js/controllers/home/machineCreation.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/client/js/controllers/home/machineCreation.js b/client/js/controllers/home/machineCreation.js index 11315dd..d1e6b6a 100644 --- a/client/js/controllers/home/machineCreation.js +++ b/client/js/controllers/home/machineCreation.js @@ -9,8 +9,17 @@ mainApp.controller('machineCreationCtrl', ['$scope', 'Compute', '$rootScope', '$ $scope.name = "loic" // When we need to show details of machine - $scope.$on('showMachineCreationEvent', function (eventName) { + $scope.$on('showMachineCreationEvent', function (eventName, axioms) { + $scope.axioms=axioms; $('#machineCreationModal').modal({backdrop: false, keyboard: true}); }); + + $scope.createMachine=function(){ + machine={} + machine.name="loicTest" + machine.flavorId=1 + machine.imageId="fd1ea580-a83e-4dc8-833c-96ce2b6f1358" + Compute.createMachine(function(){console.log("done")}, machine) + }; }]); |
