From 464c2acd45240f7e73314606ebe9b461986630e0 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Thu, 29 Sep 2016 19:24:33 -0300 Subject: [PATCH] Fix nextStep js error --- public/views/tab-home.html | 17 +++++++++-------- src/js/controllers/tab-home.js | 4 ++-- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/public/views/tab-home.html b/public/views/tab-home.html index c83d84f2c..7ef233580 100644 --- a/public/views/tab-home.html +++ b/public/views/tab-home.html @@ -116,35 +116,36 @@
+ ng-show="(!externalServices.AmazonGiftCards || !externalServices.BitpayCard || !externalServices.BuyAndSell || + !wallets[0]) && nextStepEnabled">
Next steps - - + +
-
- +
+
Create a bitcoin wallet
- +
Add BitPay Card
- +
Buy or Sell Bitcoin
- +
diff --git a/src/js/controllers/tab-home.js b/src/js/controllers/tab-home.js index d7cb4e852..5fd146fa5 100644 --- a/src/js/controllers/tab-home.js +++ b/src/js/controllers/tab-home.js @@ -187,7 +187,8 @@ angular.module('copayApp.controllers').controller('tabHomeController', $scope.hideNextSteps = !$scope.hideNextSteps; $timeout(function() { $ionicScrollDelegate.resize(); - }, 10); + $scope.$apply(); + }, 100); }; var bitpayCardCache = function() { @@ -217,7 +218,6 @@ angular.module('copayApp.controllers').controller('tabHomeController', configService.whenAvailable(function() { var config = configService.getSync(); var isWindowsPhoneApp = platformInfo.isWP && platformInfo.isCordova; - $scope.hideNextSteps = false; $scope.glideraEnabled = config.glidera.enabled && !isWindowsPhoneApp; $scope.coinbaseEnabled = config.coinbase.enabled && !isWindowsPhoneApp; $scope.amazonEnabled = config.amazon.enabled;