Showing cached history first when entering Wallet Details screen.
This commit is contained in:
parent
cecad4a072
commit
2e1cc9fa87
1 changed files with 2 additions and 0 deletions
|
|
@ -203,6 +203,7 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
||||||
|
|
||||||
|
|
||||||
function updateTxHistoryFromCachedData() {
|
function updateTxHistoryFromCachedData() {
|
||||||
|
$scope.vm.gettingCachedHistory = true;
|
||||||
walletHistoryService.getCachedTxHistory($scope.wallet.id, function onGetCachedTxHistory(err, txHistory){
|
walletHistoryService.getCachedTxHistory($scope.wallet.id, function onGetCachedTxHistory(err, txHistory){
|
||||||
$scope.vm.gettingCachedHistory = false;
|
$scope.vm.gettingCachedHistory = false;
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|
@ -401,6 +402,7 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
||||||
var refreshInterval;
|
var refreshInterval;
|
||||||
|
|
||||||
$scope.$on("$ionicView.afterEnter", function onAfterEnter(event, data) {
|
$scope.$on("$ionicView.afterEnter", function onAfterEnter(event, data) {
|
||||||
|
updateTxHistoryFromCachedData();
|
||||||
$scope.updateAll(true, true);
|
$scope.updateAll(true, true);
|
||||||
// refreshAmountSection();
|
// refreshAmountSection();
|
||||||
refreshInterval = $interval($scope.onRefresh, 10 * 1000);
|
refreshInterval = $interval($scope.onRefresh, 10 * 1000);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue