Fix cache for activity, addressbook, amazon, proposals

This commit is contained in:
Gustavo Maximiliano Cortez 2016-09-22 01:47:39 -03:00
commit 9cb0dc128c
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
9 changed files with 68 additions and 41 deletions

View file

@ -4,7 +4,7 @@ angular.module('copayApp.controllers').controller('addressbookListController', f
var contacts;
$scope.initAddressbook = function() {
var initAddressbook = function() {
addressbookService.list(function(err, ab) {
if (err) $log.error(err);
@ -47,10 +47,14 @@ angular.module('copayApp.controllers').controller('addressbookListController', f
popupService.showAlert(err);
return;
}
$scope.initAddressbook();
initAddressbook();
$scope.$digest();
});
}, 100);
};
$scope.$on("$ionicView.enter", function(event, data){
initAddressbook();
});
});