diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2020-10-17 17:43:46 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2020-10-17 17:43:46 -0400 |
| commit | 17ed1221ab453a664470a25d6bb6b0d203f934b7 (patch) | |
| tree | 53eaf99da5bb7dbae101c660c8bad002856906df /www/js/WizardCtrl.js | |
| parent | 526572e49505d8f31865de14ef6c0437caca364d (diff) | |
apparently I forgot how to return promises #997
Diffstat (limited to 'www/js/WizardCtrl.js')
| -rw-r--r-- | www/js/WizardCtrl.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/www/js/WizardCtrl.js b/www/js/WizardCtrl.js index 897ffa18..119089d8 100644 --- a/www/js/WizardCtrl.js +++ b/www/js/WizardCtrl.js @@ -782,12 +782,14 @@ angular.module('zmApp.controllers').controller('zmApp.WizardCtrl', ['$scope', '$ .then(function (success) { $ionicLoading.hide(); // return true here because we want to progress - return d.resolve(true); + d.resolve(true); + return d.promise; }, function (error) { $ionicLoading.hide(); // return true here because we want to progress - return d.resolve(true); + d.resolve(true); + return d.promise; }); }, function (error) { @@ -795,7 +797,8 @@ angular.module('zmApp.controllers').controller('zmApp.WizardCtrl', ['$scope', '$ NVR.log("zmWizard: api failed"); // return true here because we want to progress - return d.resolve(true); + d.resolve(true); + return d.promise; }); }, @@ -806,8 +809,8 @@ angular.module('zmApp.controllers').controller('zmApp.WizardCtrl', ['$scope', '$ NVR.log("zmWizard: login failed"); $scope.wizard.portalValidText = $translate.instant('kPortalLoginUnsuccessful'); $scope.wizard.portalColor = "#e74c3c"; - return d.resolve(true); - + d.resolve(true); + return d.promise; }); }); //finally |
