diff options
Diffstat (limited to 'www')
| -rw-r--r-- | www/js/PortalLoginCtrl.js | 4 | ||||
| -rw-r--r-- | www/js/StateCtrl.js | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/www/js/PortalLoginCtrl.js b/www/js/PortalLoginCtrl.js index 853a9593..8b859a95 100644 --- a/www/js/PortalLoginCtrl.js +++ b/www/js/PortalLoginCtrl.js @@ -25,11 +25,11 @@ angular.module('zmApp.controllers').controller('zmApp.PortalLoginCtrl', ['$ionic $scope.pinPrompt = false; // if true, then PIN is displayed else skip - if (ZMDataModel.isLoggedIn()) { + if (ZMDataModel.isLoggedIn() ) { ZMDataModel.zmLog("User credentials are provided"); // You can login either via touch ID or typing in your code - if ( $ionicPlatform.is('ios')) + if ( $ionicPlatform.is('ios') && loginData.usePin) { $cordovaTouchID.checkSupport() .then(function () { diff --git a/www/js/StateCtrl.js b/www/js/StateCtrl.js index 701f0029..a53b7911 100644 --- a/www/js/StateCtrl.js +++ b/www/js/StateCtrl.js @@ -5,8 +5,8 @@ // controller for State View angular.module('zmApp.controllers').controller('zmApp.StateCtrl', - ['$ionicPopup', '$scope', 'zm', 'ZMDataModel', '$ionicSideMenuDelegate', '$ionicLoading', '$ionicModal', '$state', '$http', '$rootScope','$timeout',function ( - $ionicPopup, $scope, zm, ZMDataModel, $ionicSideMenuDelegate, $ionicLoading, $ionicModal, $state, $http, $rootScope, $timeout) { + ['$ionicPopup', '$scope', 'zm', 'ZMDataModel', '$ionicSideMenuDelegate', '$ionicLoading', '$ionicModal', '$state', '$http', '$rootScope','$timeout',function ( + $ionicPopup, $scope, zm, ZMDataModel, $ionicSideMenuDelegate, $ionicLoading, $ionicModal, $state, $http, $rootScope, $timeout) { //---------------------------------------------------------------------- // Controller main @@ -34,6 +34,7 @@ angular.module('zmApp.controllers').controller('zmApp.StateCtrl', getRunStatus(); // Let's stagger this by 500ms each to see if Chrome lets these through + // This may also help if your Apache is not configured to let multiple connections through $timeout( function() {ZMDataModel.zmDebug("invoking LoadStatus...");getLoadStatus();},500); $timeout( function() {ZMDataModel.zmDebug("invoking DiskStatus...");getDiskStatus();},1000); |
