Add delete machine

This commit is contained in:
Loic GUEGAN 2016-05-04 20:19:06 +02:00
parent b2c76ddf0a
commit cddd9682e6
4 changed files with 26 additions and 3 deletions

View file

@ -5,6 +5,9 @@
*/
mainApp.controller('homeCtrl', [ '$scope', 'Compute', '$rootScope', 'Loading','Identity', 'Image', function ($scope, Compute, $rootScope, Loading, Identity, Image)
{
$scope.raiseShowMachineCreationEvent = function () {
$rootScope.$broadcast("showMachineCreationEvent", Compute.getData().axioms);
};
var displayMachine = function(){
var machineNames = [];
var i = 0;

View file

@ -41,6 +41,8 @@ mainApp.controller('machineDetailsCtrl', ['$scope', 'Compute', '$rootScope', '$t
//Todo
};
$scope.deleteMachine=function(){
Compute.deleteMachine(function(){console.log("deleted")},$scope.machine.id);
}
}]);