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; border: none;
} }
.btn-style-payments button:disabled {
background: #3d3a3a;
}
.btn-click { .btn-click {
border-radius: 10px !important; border-radius: 10px !important;
background: #EF4444 !important; background: #EF4444 !important;

View File

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