Merge pull request #719 from yemel/anti-feature/remove-email-backup

Remove email backup feature
This commit is contained in:
Matias Alejo Garcia 2014-06-19 17:20:47 -03:00
commit a07957d4a3
4 changed files with 2 additions and 63 deletions

View file

@ -8,17 +8,6 @@ angular.module('copayApp.controllers').controller('BackupController',
backupService.download($rootScope.wallet);
};
$scope.openModal = function() {
var modalInstance = $modal.open({
templateUrl: 'backupModal.html',
controller: ModalInstanceCtrl,
});
modalInstance.result.then(function(email) {
backupService.sendEmail(email, $rootScope.wallet);
});
};
$scope.deleteWallet = function() {
var w = $rootScope.wallet;
w.disconnect();
@ -28,14 +17,3 @@ angular.module('copayApp.controllers').controller('BackupController',
};
});
var ModalInstanceCtrl = function($scope, $modalInstance) {
$scope.submit = function(form) {
$modalInstance.close($scope.email);
};
$scope.cancel = function() {
$modalInstance.dismiss('cancel');
};
};