summaryrefslogtreecommitdiff
path: root/www/js/LoginCtrl.js
diff options
context:
space:
mode:
authorARC <arjunrc@gmail.com>2015-05-09 19:18:30 -0400
committerARC <arjunrc@gmail.com>2015-05-09 19:18:30 -0400
commitfdb1d93c54e4c67639185f2c859b1fec6a5fb904 (patch)
tree3e4154164a3fc8f349503748b30fd99cd4946607 /www/js/LoginCtrl.js
parentbfe426a83bfcd32bac22bc06cccb15f15a9f9450 (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.js12
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);
+ };
- };
})