Merge pull request #5559 from JDonadio/ref/improve-view-load
Load data after transition
This commit is contained in:
commit
5457eae905
1 changed files with 5 additions and 3 deletions
|
|
@ -347,9 +347,6 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
||||||
$scope.addressbook = ab || {};
|
$scope.addressbook = ab || {};
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.updateAll();
|
|
||||||
refreshAmountSection();
|
|
||||||
|
|
||||||
listeners = [
|
listeners = [
|
||||||
$rootScope.$on('bwsEvent', function(e, walletId) {
|
$rootScope.$on('bwsEvent', function(e, walletId) {
|
||||||
if (walletId == $scope.wallet.id && e.type != 'NewAddress')
|
if (walletId == $scope.wallet.id && e.type != 'NewAddress')
|
||||||
|
|
@ -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) {
|
$scope.$on("$ionicView.beforeLeave", function(event, data) {
|
||||||
if ($window.StatusBar) {
|
if ($window.StatusBar) {
|
||||||
$window.StatusBar.backgroundColorByHexString('#1e3186');
|
$window.StatusBar.backgroundColorByHexString('#1e3186');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue