From 24a8298135ab4ba991e2851867536f43cb3c49b6 Mon Sep 17 00:00:00 2001 From: Kostya Date: Sun, 17 Dec 2023 13:13:11 +0300 Subject: [PATCH] added test v. for method checkoffbtn payments modal --- luckydiamond/src/components/PaymentsModal.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/luckydiamond/src/components/PaymentsModal.vue b/luckydiamond/src/components/PaymentsModal.vue index 5fbda8a..0780682 100644 --- a/luckydiamond/src/components/PaymentsModal.vue +++ b/luckydiamond/src/components/PaymentsModal.vue @@ -69,7 +69,7 @@ export default { card: 0, clickedBtn: '', url: '', - offBtn: false, + offBtn: true, agreeUser: false, PaymentsModalNumbers } @@ -96,7 +96,9 @@ export default { }, computed: { checkOffBtn() { - return this.offBtn === true || this.agreeUser === false + // return this.offBtn === true || this.agreeUser === false + // return this.checkBtn() + return !(this.offBtn === false && this.agreeUser !== false); }, }, methods: { @@ -106,6 +108,14 @@ export default { RedirectedMethodDep() { window.location.href = this.url }, + // checkBtn() { + // if (this.offBtn === false) { + // if (this.agreeUser !== false) { + // return false + // } + // } + // return true + // }, // detectorMethod(method) { // this.closeModal() // if (method === 'dep') {