From a9273df91eced721b23f311e37b8d820f5951ada Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sun, 8 Apr 2018 16:24:27 -0400 Subject: clean up ES stuff, and add basic auth warning in wizard --- www/js/MontageCtrl.js | 8 +------- www/js/PortalLoginCtrl.js | 4 ++-- www/js/app.js | 2 +- www/templates/wizard.html | 4 +++- 4 files changed, 7 insertions(+), 11 deletions(-) (limited to 'www') diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js index f8fda110..3d1a211c 100644 --- a/www/js/MontageCtrl.js +++ b/www/js/MontageCtrl.js @@ -36,13 +36,7 @@ angular.module('zmApp.controllers') $rootScope.$on("auth-success", function () { NVRDataModel.debug("Montage Re-auth handler; stopping network..."); //console.log ("RETAUTH"); - NVRDataModel.stopNetwork(); - - if (NVRDataModel.getLogin().isUseEventServer) { - NVRDataModel.debug ("Restablishing event server connection..."); - EventServer.disconnect(); - EventServer.init(); - } + // NVRDataModel.stopNetwork(); }); diff --git a/www/js/PortalLoginCtrl.js b/www/js/PortalLoginCtrl.js index 75448ceb..4161c5b9 100644 --- a/www/js/PortalLoginCtrl.js +++ b/www/js/PortalLoginCtrl.js @@ -246,7 +246,7 @@ angular.module('zmApp.controllers').controller('zmApp.PortalLoginCtrl', ['$ionic return; }*/ // coming here means continue - EventServer.refresh(); + //EventServer.init(); var statetoGo = $rootScope.lastState ? $rootScope.lastState : 'app.montage'; //NVRDataModel.debug ("logging state transition"); @@ -466,7 +466,7 @@ angular.module('zmApp.controllers').controller('zmApp.PortalLoginCtrl', ['$ionic NVRDataModel.getKeyConfigParams(1); NVRDataModel.getTimeZone(); - EventServer.refresh(); + EventServer.init(); // if push broadcast happens BEFORE this, then no // state change will occur here which is good diff --git a/www/js/app.js b/www/js/app.js index 487a0d0e..3bd875c6 100755 --- a/www/js/app.js +++ b/www/js/app.js @@ -1774,7 +1774,7 @@ angular.module('zmApp', [ // now do SSL check //setSSLCerts(); - EventServer.init(); + //EventServer.init(); zmCheckUpdates.start(); NVRDataModel.log("Setting up POST LOGIN timer"); zmAutoLogin.start(); diff --git a/www/templates/wizard.html b/www/templates/wizard.html index 60d1e1ef..70f17b6e 100644 --- a/www/templates/wizard.html +++ b/www/templates/wizard.html @@ -41,13 +41,15 @@ - {{'kWizBasicAuth' | translate}} + {{'kWizBasicAuth' | translate}}

{{'kWarningBasicAuth'|translate}}

+ -- cgit v1.2.3