Updates addressbook variable only if it is modified
This commit is contained in:
parent
46812b7eef
commit
c7f09f5e86
1 changed files with 2 additions and 1 deletions
|
|
@ -214,6 +214,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
$scope.error = err;
|
$scope.error = err;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$rootScope.$emit('Local/AddressbookUpdated');
|
||||||
$scope.list = ab;
|
$scope.list = ab;
|
||||||
$scope.editAddressbook = true;
|
$scope.editAddressbook = true;
|
||||||
$scope.toggleEditAddressbook();
|
$scope.toggleEditAddressbook();
|
||||||
|
|
@ -230,6 +231,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
$scope.error = err;
|
$scope.error = err;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$rootScope.$emit('Local/AddressbookUpdated');
|
||||||
$scope.list = ab;
|
$scope.list = ab;
|
||||||
$scope.$digest();
|
$scope.$digest();
|
||||||
});
|
});
|
||||||
|
|
@ -272,7 +274,6 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
|
|
||||||
modalInstance.result.finally(function() {
|
modalInstance.result.finally(function() {
|
||||||
$rootScope.modalOpened = false;
|
$rootScope.modalOpened = false;
|
||||||
$rootScope.$emit('Local/AddressbookUpdated');
|
|
||||||
disableCloseModal();
|
disableCloseModal();
|
||||||
var m = angular.element(document.getElementsByClassName('reveal-modal'));
|
var m = angular.element(document.getElementsByClassName('reveal-modal'));
|
||||||
m.addClass(animationService.modalAnimated.slideOutDown);
|
m.addClass(animationService.modalAnimated.slideOutDown);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue