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
commit fe0c061eaa

View file

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