mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-20 02:09:10 +01:00
FIX: show spinner if multisig is trying to cosign external transaction
This commit is contained in:
parent
e2633cb7fe
commit
26068135ed
@ -973,6 +973,13 @@ export default class SendDetails extends Component {
|
||||
});
|
||||
};
|
||||
|
||||
setIsloading = async isLoading => {
|
||||
const that = this;
|
||||
return new Promise(function (resolve) {
|
||||
that.setState({ isLoading: isLoading }, () => setTimeout(resolve, 100));
|
||||
});
|
||||
};
|
||||
|
||||
_importTransactionMultisig = async base64arg => {
|
||||
try {
|
||||
/** @type MultisigHDWallet */
|
||||
@ -982,7 +989,10 @@ export default class SendDetails extends Component {
|
||||
const psbt = bitcoin.Psbt.fromBase64(base64); // if it doesnt throw - all good, its valid
|
||||
|
||||
if (fromWallet.howManySignaturesCanWeMake() > 0 && (await this.askCosignThisTransaction())) {
|
||||
this.hideAdvancedTransactionOptionsModal();
|
||||
await this.setIsloading(true);
|
||||
fromWallet.cosignPsbt(psbt);
|
||||
await this.setIsloading(false);
|
||||
}
|
||||
|
||||
this.props.navigation.navigate('PsbtMultisig', {
|
||||
|
Loading…
Reference in New Issue
Block a user