Fix backup for iOS

This commit is contained in:
Gustavo Maximiliano Cortez 2014-10-16 15:10:13 -03:00
commit 74174f9775
6 changed files with 44 additions and 7 deletions

View file

@ -27,6 +27,15 @@ angular.module('copayApp.controllers').controller('MoreController',
decimals: 8
}];
$scope.sendEmail = function(backupPlainText) {
var w = $rootScope.wallet;
var link = 'mailto:'
+ '?subject=' + escape(backupService.getFilename(w))
+ '&body=' + escape(backupPlainText) + '';
window.location.href = link;
};
$scope.selectedAlternative = {
name: w.settings.alternativeName,
isoCode: w.settings.alternativeIsoCode