Fix delay when open a tx from home
This commit is contained in:
parent
a8ed208ba7
commit
12906bf416
1 changed files with 9 additions and 9 deletions
|
|
@ -53,18 +53,18 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
||||||
return popupService.showAlert(null, gettextCatalog.getString('Transaction not found'));
|
return popupService.showAlert(null, gettextCatalog.getString('Transaction not found'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$scope.wallet = wallet;
|
||||||
|
$scope.btx = lodash.cloneDeep(tx);
|
||||||
|
$ionicModal.fromTemplateUrl('views/modals/tx-details.html', {
|
||||||
|
scope: $scope
|
||||||
|
}).then(function(modal) {
|
||||||
|
$scope.txDetailsModal = modal;
|
||||||
|
$scope.txDetailsModal.show();
|
||||||
|
});
|
||||||
|
|
||||||
walletService.getTxNote(wallet, n.txid, function(err, note) {
|
walletService.getTxNote(wallet, n.txid, function(err, note) {
|
||||||
if (err) $log.debug(gettextCatalog.getString('Could not fetch transaction note'));
|
if (err) $log.debug(gettextCatalog.getString('Could not fetch transaction note'));
|
||||||
|
|
||||||
$scope.wallet = wallet;
|
|
||||||
$scope.btx = lodash.cloneDeep(tx);
|
|
||||||
$scope.btx.note = note;
|
$scope.btx.note = note;
|
||||||
$ionicModal.fromTemplateUrl('views/modals/tx-details.html', {
|
|
||||||
scope: $scope
|
|
||||||
}).then(function(modal) {
|
|
||||||
$scope.txDetailsModal = modal;
|
|
||||||
$scope.txDetailsModal.show();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue