Disable send mail button when there is no text

This commit is contained in:
bton 2024-11-27 22:09:02 +01:00 committed by jedi
parent 5565e5f5d0
commit 89707113bb

View file

@ -35,7 +35,7 @@
<div>
<textarea placeholder="reply mail..." v-model="newMail" class="form-control">
</textarea>
<AsyncButton class="btn btn-primary float-right" :task="sendMailAndClear">
<AsyncButton class="btn btn-primary float-right" :task="sendMailAndClear" :disabled="!newMail">
<font-awesome-icon icon="envelope"/>
Send Mail
</AsyncButton>