From 0a7ed079d04560ce6c246e29d6eb7e5db1e5af5f Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Wed, 9 May 2018 09:01:01 -0400 Subject: take off website monitors for now - no good way to show #601 --- www/js/DataModel.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'www/js/DataModel.js') diff --git a/www/js/DataModel.js b/www/js/DataModel.js index 8824d162..20731214 100755 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -1863,7 +1863,9 @@ angular.module('zmApp.controllers') //console.log("NVRDataModel: Invoking HTTP get to load monitors"); log((forceReload == 1) ? "getMonitors:Force reloading all monitors" : "getMonitors:Loading all monitors"); var apiurl = loginData.apiurl; - var myurl = apiurl + "/monitors.json"; + var myurl = apiurl + "/monitors"; + myurl += "/index/Type !=:WebSite.json"; + https://arjunrc.ddns.net:8889/zm/api/monitors/index/Type !=:WebSite.json //console.log ("API:"+myurl); // console.log ("gettign zms port"); @@ -1879,6 +1881,7 @@ angular.module('zmApp.controllers') //console.log("HTTP success got " + JSON.stringify(data.monitors)); monitors = data.monitors; + if ($rootScope.authSession == 'undefined') { log ("Now that we have monitors, lets get AuthKey..."); getAuthKey(monitors[0].Monitor.Id, (Math.floor((Math.random() * 999999) + 1)).toString()); -- cgit v1.2.3