fix refresh
This commit is contained in:
parent
2235cb60bb
commit
210ebf9514
3 changed files with 9 additions and 11 deletions
|
|
@ -106,7 +106,9 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
||||||
$scope.recentTransactionsEnabled = config.recentTransactions.enabled;
|
$scope.recentTransactionsEnabled = config.recentTransactions.enabled;
|
||||||
if ($scope.recentTransactionsEnabled) getNotifications();
|
if ($scope.recentTransactionsEnabled) getNotifications();
|
||||||
|
|
||||||
if (!config.hideNextSteps.enabled) {
|
if (config.hideNextSteps.enabled) {
|
||||||
|
$scope.nextStepsItems = null;
|
||||||
|
} else {
|
||||||
$scope.nextStepsItems = nextStepsService.get();
|
$scope.nextStepsItems = nextStepsService.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,15 +25,11 @@ angular.module('copayApp.controllers').controller('tabSettingsController', funct
|
||||||
isoCode: config.wallet.settings.alternativeIsoCode
|
isoCode: config.wallet.settings.alternativeIsoCode
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO Move this to a generic service, like buyAndSell.
|
// TODO move this to a generic service
|
||||||
$scope.bitpayCardEnabled = config.bitpayCard.enabled;
|
bitpayCardService.getCards(function(err, cards) {
|
||||||
|
if (err) $log.error(err);
|
||||||
if ($scope.bitpayCardEnabled) {
|
$scope.bitpayCards = cards && cards.length > 0;
|
||||||
bitpayCardService.getCards(function(err, cards) {
|
});
|
||||||
if (err) $log.error(err);
|
|
||||||
$scope.bitpayCards = cards && cards.length > 0;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class=" item item-icon-left item-icon-right"
|
<a class=" item item-icon-left item-icon-right"
|
||||||
ng-if="bitpayCardEnabled && bitpayCards"
|
ng-if="bitpayCards"
|
||||||
ui-sref="tabs.preferences.bitpayCard">
|
ui-sref="tabs.preferences.bitpayCard">
|
||||||
<i class="icon big-icon-svg circle">
|
<i class="icon big-icon-svg circle">
|
||||||
<div class="bg icon-bitpay-card"></div>
|
<div class="bg icon-bitpay-card"></div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue