fix refresh

This commit is contained in:
Matias Alejo Garcia 2017-01-31 17:45:19 -03:00
commit 210ebf9514
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
3 changed files with 9 additions and 11 deletions

View file

@ -106,7 +106,9 @@ angular.module('copayApp.controllers').controller('tabHomeController',
$scope.recentTransactionsEnabled = config.recentTransactions.enabled;
if ($scope.recentTransactionsEnabled) getNotifications();
if (!config.hideNextSteps.enabled) {
if (config.hideNextSteps.enabled) {
$scope.nextStepsItems = null;
} else {
$scope.nextStepsItems = nextStepsService.get();
}

View file

@ -25,15 +25,11 @@ angular.module('copayApp.controllers').controller('tabSettingsController', funct
isoCode: config.wallet.settings.alternativeIsoCode
};
// TODO Move this to a generic service, like buyAndSell.
$scope.bitpayCardEnabled = config.bitpayCard.enabled;
if ($scope.bitpayCardEnabled) {
bitpayCardService.getCards(function(err, cards) {
if (err) $log.error(err);
$scope.bitpayCards = cards && cards.length > 0;
});
}
// TODO move this to a generic service
bitpayCardService.getCards(function(err, cards) {
if (err) $log.error(err);
$scope.bitpayCards = cards && cards.length > 0;
});
});
};