Skip to content

Commit

Permalink
force reloading monitors after login is saved and auth is validated -…
Browse files Browse the repository at this point in the history
… should resolve #58
  • Loading branch information
pliablepixels committed Nov 1, 2015
1 parent a725444 commit 5c08c33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions www/js/LoginCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$r
template: 'Please explore the menu and enjoy zmNinja!'
}).then(function (res) {
$ionicSideMenuDelegate.toggleLeft();
ZMDataModel.zmDebug ("Force reloading monitors...");
var refresh = ZMDataModel.getMonitors(1);
});

})
Expand All @@ -291,6 +293,7 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$r

$scope.saveItems = function () {
saveItems();


};

Expand Down

0 comments on commit 5c08c33

Please sign in to comment.