diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2016-02-28 17:54:15 +0100 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2016-02-28 17:54:15 +0100 |
| commit | 81c4c30c69f63a8605d5e7d2d317aa85fd7fdb05 (patch) | |
| tree | 0e90f9cb4a5c851eed0f4900823d3e45bf3ca891 /client/js/controllers/home | |
| parent | 27a39a9448eac036d3af994b36d77093a2304e00 (diff) | |
Add spin icon
Diffstat (limited to 'client/js/controllers/home')
| -rw-r--r-- | client/js/controllers/home/machineDetails.js | 4 | ||||
| -rw-r--r-- | client/js/controllers/home/main.js | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/client/js/controllers/home/machineDetails.js b/client/js/controllers/home/machineDetails.js index 3ee4625..f84a073 100644 --- a/client/js/controllers/home/machineDetails.js +++ b/client/js/controllers/home/machineDetails.js @@ -21,11 +21,11 @@ mainApp.controller('machineDetailsCtrl', [ '$scope', 'Compute', '$rootScope', '$ // Fake timeout $timeout(function(){ $("#waitingForToggleMachine").hide(); - }, 1000); + }, 3000); $timeout(function(){ $scope.machine.online=!$scope.machine.online; - }, 1000); + }, 3000); }; diff --git a/client/js/controllers/home/main.js b/client/js/controllers/home/main.js index 6545c1a..d93c376 100644 --- a/client/js/controllers/home/main.js +++ b/client/js/controllers/home/main.js @@ -17,5 +17,6 @@ mainApp.controller('homeCtrl', [ '$scope', 'Compute', '$rootScope', function ($s var machine={name: "Machine 1", online:true}; $rootScope.$broadcast("showMachineDetailsEvent", machine); } - + + }]); |
