diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-11-01 16:46:42 -0500 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-11-01 16:46:42 -0500 |
| commit | 32e266609c7af008e2d6b46144d4798d00cd9a40 (patch) | |
| tree | 356e374b8a5f1d3ba24dc41b91c09b76ad5fd839 /www/js | |
| parent | 748fe46c303aa883a5a8ae1c1cc2df24b0f29ab9 (diff) | |
force reloading monitors after login is saved and auth is validated - should resolve #58
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/LoginCtrl.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/www/js/LoginCtrl.js b/www/js/LoginCtrl.js index b968c087..02a39f73 100644 --- a/www/js/LoginCtrl.js +++ b/www/js/LoginCtrl.js @@ -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); }); }) @@ -291,6 +293,7 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$r $scope.saveItems = function () { saveItems(); + }; |
