only show services on home when wallets done loading

This commit is contained in:
Kadir Sekha 2017-12-14 13:33:42 +09:00
commit f68513bb5f
2 changed files with 3 additions and 1 deletions

View file

@ -15,6 +15,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
$scope.isWindowsPhoneApp = platformInfo.isCordova && platformInfo.isWP;
$scope.isNW = platformInfo.isNW;
$scope.showRateCard = {};
$scope.showServices = false;
$scope.$on("$ionicView.afterEnter", function() {
startupService.ready();
@ -121,6 +122,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
$scope.nextStepsItems = nextStepsService.get();
}
$scope.showServices = true;
pushNotificationsService.init();
firebaseEventsService.init();

View file

@ -97,7 +97,7 @@
<div class="ng-hide list card" ng-show="walletsBtc[0] && buyAndSellItems.length>0" ng-include="'views/includes/buyAndSellCard.html'"></div>
<div class="ng-hide list card" ng-show="homeIntegrations.length>0" ng-include="'views/includes/homeIntegrations.html'"></div>
<div class="ng-hide list card" ng-show="nextStepsItems.length>0 && !isWindowsPhoneApp" ng-include="'views/includes/nextSteps.html'"></div>
<div class="list card" ng-include="'views/includes/services.html'"></div>
<div class="ng-hide list card" ng-show="showServices && (walletsBch[0] || walletsBtc[0])" ng-include="'views/includes/services.html'"></div>
</ion-content>
</ion-view>