From d3b24621b21dd1a9b8ea65b9cb40a4a8ae20bccc Mon Sep 17 00:00:00 2001 From: ogerly Date: Wed, 1 Feb 2023 12:26:52 +0100 Subject: [PATCH] simple disabled function on submit send --- frontend/src/components/GddSend/TransactionForm.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/GddSend/TransactionForm.vue b/frontend/src/components/GddSend/TransactionForm.vue index 5efa6012b..cb2850563 100644 --- a/frontend/src/components/GddSend/TransactionForm.vue +++ b/frontend/src/components/GddSend/TransactionForm.vue @@ -105,7 +105,7 @@ - + {{ $t('form.check_now') }} @@ -177,6 +177,17 @@ export default { }, }, computed: { + disabled() { + if ( + this.form.email.length > 5 && + parseInt(this.form.amount) <= parseInt(this.balance) && + this.form.memo.length > 5 && + this.form.memo.length <= 255 + ) { + return false + } + return true + }, isBalanceDisabled() { return this.balance <= 0 ? 'disabled' : false },