diff options
Diffstat (limited to 'www/js/EventCtrl.js')
| -rw-r--r-- | www/js/EventCtrl.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index 7ebc764b..beadd18b 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -163,6 +163,21 @@ angular.module('zmApp.controllers') $scope.monitors = ZMDataModel.applyMontageMonitorPrefs(tempMon, 2)[0]; } else $scope.monitors = message; + + + if ($scope.monitors.length == 0) + { + $ionicPopup.alert({ + title: "No Monitors found", + template: "Please check your credentials" + }); + $ionicHistory.nextViewOptions({ + disableBack: true + }); + $state.go("login"); + return; + } + // console.log ("********** GOT MONITORS " + JSON.stringify($scope.monitors)); //$scope.monitors = message; |
