The Comment button is now disabled when there is no text and the AsyncButton can now be disabled without setting it to inProgress

This commit is contained in:
bton 2024-11-27 22:01:31 +01:00 committed by jedi
parent 13994a111e
commit 86b4220eaa
3 changed files with 14 additions and 10 deletions

View file

@ -17,7 +17,7 @@
<textarea placeholder="add comment..." v-model="newComment"
class="form-control">
</textarea>
<AsyncButton class="btn btn-secondary float-right" :task="addCommentAndClear">
<AsyncButton class="btn btn-secondary float-right" :task="addCommentAndClear" :disabled="!newComment">
<font-awesome-icon icon="comment"/>
Save Comment
</AsyncButton>