set backup done when view the plain text bakcup

This commit is contained in:
Gustavo Maximiliano Cortez 2014-12-15 12:09:11 -03:00
parent e5f4844ca5
commit fe0c061eaa
1 changed files with 1 additions and 1 deletions

View File

@ -72,12 +72,12 @@ BackupService.prototype.walletDownload = function(wallet) {
};
BackupService.prototype.profileEncrypted = function(iden) {
iden.setBackupDone();
return iden.exportEncryptedWithWalletInfo(iden.password);
}
BackupService.prototype.profileDownload = function(iden) {
var ew = this.profileEncrypted(iden);
iden.setBackupDone();
var name = iden.fullName;
var filename = name + '-profile.json';
this._download(ew, name, filename)