added event for close modal

This commit is contained in:
Kostya
2023-12-20 16:32:14 +03:00
parent a8d8f27796
commit a407f85c91

View File

@@ -196,19 +196,17 @@ export default {
window.location.href = this.url
},
RedirectedMethodTransferMoneyToSp() {
if(this.captchaToken !== '' && this.amountSave > 0) {
setTimeout(() => {
try {
WithdrawMoneyOperation(this.amountSave, this.card.toString(), this.captchaToken).then((response) => {
console.log(`work withdraw - ${response}`)
this.offBtn = false
})
}
catch (e) {
console.error(`Error in wihdrawmoney operation - ${e}`)
}
}, 4000)
}
setTimeout(() => {
try {
WithdrawMoneyOperation(this.amountSave, this.card.toString(), this.captchaToken).then((response) => {
console.log(`work withdraw - ${response}`)
})
}
catch (e) {
console.error(`Error in wihdrawmoney operation - ${e}`)
}
}, 4000)
return this.$emit('closemodal')
},
checkBtn() {
if (this.offBtn === false) {