remove profile

This commit is contained in:
Ivan Socolsky 2014-12-01 14:44:36 -03:00
commit 14cb044990
3 changed files with 40 additions and 1 deletions

View file

@ -55,6 +55,16 @@ angular.module('copayApp.controllers').controller('ProfileController', function(
};
$scope.deleteProfile = function () {
identityService.deleteProfile(function (err, res) {
if (err) {
log.warn(err);
notification.error('Error', 'Could not delete profile');
return;
}
$location.path('/');
setTimeout(function () {
notification.error('Success', 'Profile successfully deleted');
}, 1);
});
};
});