mirror of https://github.com/BTCPrivate/copay.git
[V4] FIX: bitcoin cash duplicate
This commit is contained in:
parent
f02d8d7914
commit
e3a5c738e0
|
@ -93,7 +93,7 @@ export class BitcoinCashPage {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
openRecoveryToolLink(): void {
|
public openRecoveryToolLink(): void {
|
||||||
let url = 'https://bitpay.github.io/copay-recovery/';
|
let url = 'https://bitpay.github.io/copay-recovery/';
|
||||||
let optIn = true;
|
let optIn = true;
|
||||||
let title = this.translate.instant('Open the recovery tool');
|
let title = this.translate.instant('Open the recovery tool');
|
||||||
|
@ -102,8 +102,8 @@ export class BitcoinCashPage {
|
||||||
this.externalLinkProvider.open(url, optIn, title, null, okText, cancelText);
|
this.externalLinkProvider.open(url, optIn, title, null, okText, cancelText);
|
||||||
}
|
}
|
||||||
|
|
||||||
duplicate(wallet: any) {
|
public duplicate(wallet: any) {
|
||||||
this.logger.debug('Duplicating wallet for BCH:' + wallet.id + ':' + wallet.name);
|
this.logger.debug('Duplicating wallet for BCH: ' + wallet.id + ': ' + wallet.name);
|
||||||
|
|
||||||
let opts: any = {
|
let opts: any = {
|
||||||
name: wallet.name + '[BCH]',
|
name: wallet.name + '[BCH]',
|
||||||
|
@ -140,8 +140,6 @@ export class BitcoinCashPage {
|
||||||
this.profileProvider.createWallet(opts).then((newWallet) => {
|
this.profileProvider.createWallet(opts).then((newWallet) => {
|
||||||
return resolve({ newWallet: newWallet, isNew: true });
|
return resolve({ newWallet: newWallet, isNew: true });
|
||||||
});
|
});
|
||||||
}).catch((err) => {
|
|
||||||
return reject(err);
|
|
||||||
});
|
});
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
return reject(err);
|
return reject(err);
|
||||||
|
@ -189,7 +187,6 @@ export class BitcoinCashPage {
|
||||||
setErr(err);
|
setErr(err);
|
||||||
});
|
});
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
this.onGoingProcessProvider.set('duplicatingWallet', false);
|
|
||||||
setErr(err);
|
setErr(err);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue