From 8812d6fd22b1710e019ba53e94723c76b97af6b7 Mon Sep 17 00:00:00 2001 From: Arjun Roychowdhury Date: Mon, 30 Nov 2015 03:30:57 +0100 Subject: #108 - minAlarmCount is now part of each serverProfile and will persist Former-commit-id: 89ecf51624e78a95474630b48c05d9fa921164c0 --- www/js/LoginCtrl.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'www/js/LoginCtrl.js') diff --git a/www/js/LoginCtrl.js b/www/js/LoginCtrl.js index c8be575b..67f644a6 100644 --- a/www/js/LoginCtrl.js +++ b/www/js/LoginCtrl.js @@ -62,6 +62,15 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$r $scope.check.isUseAuth = ($scope.loginData.isUseAuth == '1') ? true : false; $scope.check.isUseEventServer = ($scope.loginData.isUseEventServer == '1') ? true : false; + ZMDataModel.zmDebug ("Retrieved state for this profile:" + JSON.stringify($scope.loginData)); + + // lets make sure Event Server is loaded + // correctly + + // FIXME: But what happens if you don't save? + // loginData gets written but auth is not done + ZMDataModel.setLogin($scope.loginData); + return true; }, -- cgit v1.2.3