Merge pull request #6108 from gabrielbazan7/ref/addressbook

remove slide to delete and adding that option to addr entry view
This commit is contained in:
Gustavo Maximiliano Cortez 2017-05-29 13:52:19 -03:00 committed by GitHub
commit a4495f73fc
4 changed files with 16 additions and 17 deletions

View file

@ -46,19 +46,6 @@ angular.module('copayApp.controllers').controller('addressbookListController', f
$scope.addressbook = result;
};
$scope.remove = function(addr) {
$timeout(function() {
addressbookService.remove(addr, function(err, ab) {
if (err) {
popupService.showAlert(gettextCatalog.getString('Error'), err);
return;
}
initAddressbook();
$scope.$digest();
});
}, 100);
};
$scope.$on("$ionicView.beforeEnter", function(event, data) {
$scope.isChromeApp = platformInfo.isChromeApp;
$scope.showAddIcon = false;

View file

@ -19,4 +19,14 @@ angular.module('copayApp.controllers').controller('addressbookViewController', f
}, 100);
};
$scope.remove = function(addr) {
addressbookService.remove(addr, function(err, ab) {
if (err) {
popupService.showAlert(gettextCatalog.getString('Error'), err);
return;
}
$ionicHistory.goBack();
});
};
});