Merge pull request #2647 from gradido/2590-To-long-text-has-submit-button-still-enabled

fix(frontend): simple disabled function on submit send
This commit is contained in:
Alexander Friedland 2023-02-14 16:02:42 +01:00 committed by GitHub
commit fb5c0d1cd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,6 +179,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
},