From 17ed1221ab453a664470a25d6bb6b0d203f934b7 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sat, 17 Oct 2020 17:43:46 -0400 Subject: apparently I forgot how to return promises #997 --- www/js/WizardCtrl.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'www/js/WizardCtrl.js') 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 -- cgit v1.2.3