diff options
| author | ARC <arjunrc@gmail.com> | 2015-05-09 19:18:30 -0400 |
|---|---|---|
| committer | ARC <arjunrc@gmail.com> | 2015-05-09 19:18:30 -0400 |
| commit | fdb1d93c54e4c67639185f2c859b1fec6a5fb904 (patch) | |
| tree | 3e4154164a3fc8f349503748b30fd99cd4946607 /www/js/LoginCtrl.js | |
| parent | bfe426a83bfcd32bac22bc06cccb15f15a9f9450 (diff) | |
Added support to limit maximum monitors in Montage View and also added a portal alias - those who many not be using one can keep this empty
Diffstat (limited to 'www/js/LoginCtrl.js')
| -rw-r--r-- | www/js/LoginCtrl.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/www/js/LoginCtrl.js b/www/js/LoginCtrl.js index e734fef2..3b79f7bf 100644 --- a/www/js/LoginCtrl.js +++ b/www/js/LoginCtrl.js @@ -1,4 +1,4 @@ -angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', function ($scope, $rootScope, $ionicModal, ZMDataModel,$ionicSideMenuDelegate) { +angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', function ($scope, $rootScope, $ionicModal, ZMDataModel,$ionicSideMenuDelegate, $ionicPopup) { $scope.openMenu = function () { $ionicSideMenuDelegate.toggleLeft(); } @@ -10,9 +10,17 @@ $scope.openMenu = function () { // Perform the login action when the user submits the login form $scope.login = function () { console.log('Saving login'); + + if (parseInt($scope.loginData.maxMontage) >10) + { + $ionicPopup.alert({ + title: 'Note', + template: 'You have selected to view more than 10 monitors in the Montage screen. Note that this is very resource intensive and may load the server or cause issues in the application. If you are not sure, please consider limiting this value to 10' + }); + } ZMDataModel.setLogin($scope.loginData); + }; - }; }) |
