diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2016-03-02 20:46:24 +0100 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2016-03-02 20:46:24 +0100 |
| commit | e2be86814e8ac92778bfa9fc49e1d02946a7efbc (patch) | |
| tree | 0ab5586ab71bf37fedbee66fb2ce002b02ecba75 /client/js | |
| parent | fa5a48bc3a76b109f6611620b6e56f3024def029 (diff) | |
Clean some things
Diffstat (limited to 'client/js')
| -rw-r--r-- | client/js/controllers/home/machineDetails.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/client/js/controllers/home/machineDetails.js b/client/js/controllers/home/machineDetails.js index 24fac42..c015eaa 100644 --- a/client/js/controllers/home/machineDetails.js +++ b/client/js/controllers/home/machineDetails.js @@ -6,23 +6,25 @@ mainApp.controller('machineDetailsCtrl', [ '$scope', 'Compute', '$rootScope', '$timeout', function ($scope, Compute, $rootScope, $timeout) { + // Init scope $scope.machine={}; - $("#waitingForToggleMachine").hide(); + $scope.machineIsStarting=false; // For loading icon + $scope.$on('showMachineDetailsEvent', function(eventName ,machine, axioms){ $scope.machine=machine; $scope.axioms=axioms; - console.log(machine); $('#machineDetailsModal').modal({backdrop: false, keyboard: true}); }); $scope.toggleMachineState=function(){ - $("#waitingForToggleMachine").show(); + // Display gif + $scope.machineIsStarting=true; // Fake timeout $timeout(function(){ - $("#waitingForToggleMachine").hide(); + $scope.machineIsStarting=false; }, 3000); $timeout(function(){ $scope.machine.online=!$scope.machine.online; |
