Fix - 253 - Removing contact from Address Book feature not functional
This commit is contained in:
parent
5a6139e6dc
commit
16a484c57c
3 changed files with 20 additions and 7 deletions
|
|
@ -40,12 +40,13 @@ angular.module('copayApp.controllers').controller('addressbookViewController', f
|
|||
}, 100);
|
||||
};
|
||||
|
||||
$scope.remove = function(addr) {
|
||||
$scope.remove = function(addressbookEntry) {
|
||||
var title = gettextCatalog.getString('Warning!');
|
||||
var message = gettextCatalog.getString('Are you sure you want to delete this contact?');
|
||||
popupService.showConfirm(title, message, null, null, function(res) {
|
||||
if (!res) return;
|
||||
addressbookService.remove(addr, function(err, ab) {
|
||||
|
||||
addressbookService.remove(addressbookEntry, function(err, ab) {
|
||||
if (err) {
|
||||
popupService.showAlert(gettextCatalog.getString('Error'), err);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue