mirror of https://github.com/BTCPrivate/copay.git
set backup done when view the plain text bakcup
This commit is contained in:
parent
e5f4844ca5
commit
fe0c061eaa
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue