load data after transition
This commit is contained in:
parent
86bf7b4bb6
commit
004336e64f
1 changed files with 6 additions and 4 deletions
|
|
@ -347,12 +347,9 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
|||
$scope.addressbook = ab || {};
|
||||
});
|
||||
|
||||
$scope.updateAll();
|
||||
refreshAmountSection();
|
||||
|
||||
listeners = [
|
||||
$rootScope.$on('bwsEvent', function(e, walletId) {
|
||||
if (walletId == $scope.wallet.id && e.type!='NewAddress')
|
||||
if (walletId == $scope.wallet.id && e.type != 'NewAddress')
|
||||
$scope.updateAll();
|
||||
}),
|
||||
$rootScope.$on('Local/TxAction', function(e, walletId) {
|
||||
|
|
@ -362,6 +359,11 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
|||
];
|
||||
});
|
||||
|
||||
$scope.$on("$ionicView.afterEnter", function(event, data) {
|
||||
$scope.updateAll();
|
||||
refreshAmountSection();
|
||||
});
|
||||
|
||||
$scope.$on("$ionicView.beforeLeave", function(event, data) {
|
||||
if ($window.StatusBar) {
|
||||
$window.StatusBar.backgroundColorByHexString('#1e3186');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue