added off btn if dont have response

This commit is contained in:
Kostya
2023-12-13 20:57:48 +03:00
parent 3ce04dbf22
commit 95cbda6842
2 changed files with 8 additions and 1 deletions

View File

@@ -126,6 +126,10 @@ input:focus {
border: none;
}
.btn-style-payments button:disabled {
background: #3d3a3a;
}
.btn-click {
border-radius: 10px !important;
background: #EF4444 !important;

View File

@@ -21,7 +21,7 @@
<input type="text">
</div>
<div class="btn-deposit btn-style-payments">
<button type="submit" @click="RedirectedMethodDep">Пополнить</button>
<button type="submit" :disabled="offBtn" @click="RedirectedMethodDep">Пополнить</button>
</div>
</div>
</div>
@@ -57,18 +57,21 @@ export default {
card: 0,
clickedBtn: '',
url: '',
offBtn: false,
PaymentsModalNumbers
}
},
watch: {
amount(newAmount) {
console.log(newAmount)
this.offBtn = !this.offBtn
setTimeout(() => {
try {
GettingMoneyOperation(newAmount)
.then((response) => {
console.log('Payments Modal Working!: ', response)
this.url = response.url
this.offBtn = !this.offBtn
})
}
catch (e) {