summaryrefslogtreecommitdiff
path: root/www/js/MenuController.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2019-08-11 17:12:52 -0400
committerPliable Pixels <pliablepixels@gmail.com>2019-08-11 17:12:52 -0400
commit5a81200bd99bd176a303d5ee05359d304fa499b8 (patch)
treeddca239b523614b1174340599e6769dd2addbcd6 /www/js/MenuController.js
parentb36c596f4350ba7e8772044c6601ca5404de1dde (diff)
#842 - my code is a huge ness.
Diffstat (limited to 'www/js/MenuController.js')
-rw-r--r--www/js/MenuController.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/www/js/MenuController.js b/www/js/MenuController.js
index 8496acff..318e4d15 100644
--- a/www/js/MenuController.js
+++ b/www/js/MenuController.js
@@ -324,6 +324,10 @@ angular.module('zmApp.controllers').controller('MenuController', ['$scope', '$io
},
function (error) {
+
+ if ($rootScope.userCancelledAuth) {
+ return;
+ }
NVR.displayBanner('error', [$translate.instant('kBannerAPICheckFailed'), $translate.instant('kBannerPleaseCheck')]);
NVR.log("API login error " + JSON.stringify(error));