summaryrefslogtreecommitdiff
path: root/client/js/controllers/home/machineDetails.js
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2016-03-02 21:03:25 +0100
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2016-03-02 21:03:25 +0100
commitdde482df6492e874ffb30c3c5127e620c418c57b (patch)
treec140423cc3d396a8a3507496b392894cbe47fecf /client/js/controllers/home/machineDetails.js
parent6ce1bbc7be91aa6441c3ff168a734ed25479eb72 (diff)
parent85222e1246b3805100428717874d15aafd682d26 (diff)
Correct conflicts
Diffstat (limited to 'client/js/controllers/home/machineDetails.js')
-rw-r--r--client/js/controllers/home/machineDetails.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/client/js/controllers/home/machineDetails.js b/client/js/controllers/home/machineDetails.js
index f84a073..c015eaa 100644
--- a/client/js/controllers/home/machineDetails.js
+++ b/client/js/controllers/home/machineDetails.js
@@ -6,21 +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){
+
+ $scope.$on('showMachineDetailsEvent', function(eventName ,machine, axioms){
$scope.machine=machine;
+ $scope.axioms=axioms;
$('#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;