diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-10-08 11:24:34 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-10-08 11:24:34 -0400 |
| commit | ba440af714d5471a94e541c5af2853ff2427ee6f (patch) | |
| tree | f8dcb6aef782e3ea68f1c985bd40360570b0267a /www | |
| parent | 62c77d57097915a6051132b18cd767bb356323e5 (diff) | |
can't call getPathZms as API is not stored
Diffstat (limited to 'www')
| -rw-r--r-- | www/js/WizardCtrl.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/www/js/WizardCtrl.js b/www/js/WizardCtrl.js index e6cfed4c..bc5c3935 100644 --- a/www/js/WizardCtrl.js +++ b/www/js/WizardCtrl.js @@ -198,10 +198,13 @@ angular.module('zmApp.controllers').controller('zmApp.WizardCtrl', ['$scope', '$ var urls = [a1, a2, a3, a4, a5]; - NVRDataModel.getPathZms() // what does ZM have stored in PATH_ZMS? + // can't use getPathZms as loginData is not inited yet + $http.get ($scope.wizard.apiURL+"/configs/viewByName/ZM_PATH_ZMS.json") + //NVRDataModel.getPathZms() // what does ZM have stored in PATH_ZMS? .then(function (data) { // remove zms or nph-zms - var path = data.trim(); + var str = data.data.config.Value; + var path = str.trim(); path = path.replace("/nph-zms", ""); path = path.replace("/zms", ""); urls.push(baseUri.trim() + path); |
