summaryrefslogtreecommitdiff
path: root/client/js/controllers/home
diff options
context:
space:
mode:
authorEoleDev <EoleDev@outlook.fr>2016-03-23 14:43:27 +0100
committerEoleDev <EoleDev@outlook.fr>2016-03-23 14:43:27 +0100
commitd3fc2ab36ced70c8eb20e7f85f900425b7781667 (patch)
treee325f9dce61a176e5a1d5585461ddd19c668b5fd /client/js/controllers/home
parenta26989103d70fb0dd3ff6834de107cae246778c3 (diff)
parentf9643dd9ffeec5eda4f563dd695135ac3a681d60 (diff)
Merge branch 'Eole' into develop
Conflicts: client/js/controllers/home/home.js
Diffstat (limited to 'client/js/controllers/home')
-rwxr-xr-x[-rw-r--r--]client/js/controllers/home/home.js23
1 files changed, 19 insertions, 4 deletions
diff --git a/client/js/controllers/home/home.js b/client/js/controllers/home/home.js
index 2b355b1..3332a10 100644..100755
--- a/client/js/controllers/home/home.js
+++ b/client/js/controllers/home/home.js
@@ -9,16 +9,31 @@ mainApp.controller('homeCtrl', [ '$scope', 'Compute', '$rootScope', 'Loading','I
var callMeAfterPullData=function(data){
$scope.machines=Compute.getData().machines;
Loading.stop();
- };
-
-
+ }
+
+ ;
+ if(Compute.getData().machines == null && Identity.isAlreadyLogin()){
+ Loading.start();
+ Compute.pullData(callMeAfterPullData);
+ }
+ else{
+ if(Identity.isAlreadyLogin()){
+ callMeAfterPullData();
+ }
+ }
+
+
+ Image.getImages(function(){});
+
+
+
$scope.raiseShowMachineDetailsEvent=function(id){
var callback=function(){
Loading.stop();
var data=Compute.getData();
$rootScope.$broadcast("showMachineDetailsEvent", data.machines[id], data.axioms);
-
+
}
Loading.start();
Compute.pullMachines(callback);