diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2020-05-15 10:09:55 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2020-05-15 10:09:55 -0400 |
| commit | 251f3ec09ef9ac99f273be2051be12ebb3a63c3c (patch) | |
| tree | ac409dfd776faaf266fa081df6aaf4b9ae21ef28 /www/js/app.js | |
| parent | 79b8c40be89fabd016e723a68abe985d61fb8a81 (diff) | |
make sure first use state works - initComplete doesn't block it!
Diffstat (limited to 'www/js/app.js')
| -rwxr-xr-x | www/js/app.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/www/js/app.js b/www/js/app.js index 3dde24f1..26fef2fb 100755 --- a/www/js/app.js +++ b/www/js/app.js @@ -1520,7 +1520,7 @@ angular.module('zmApp', [ $rootScope.$on('$stateChangeStart', function (event, toState, toParams) { - if (!$rootScope.initComplete) { + if (!$rootScope.initComplete && toState.name!= 'app.first-use') { NVR.debug ("---> Init not complete, ignoring state change request to "+toState.name); event.preventDefault(); return; @@ -1832,6 +1832,7 @@ angular.module('zmApp', [ NVR.debug("isFirstUse returned: " + val); if (val == null || val == true) { NVR.log("First time detected "); + $rootScope.initComplete = true; $state.go("app.first-use"); return; |
