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:
parent
13994a111e
commit
86b4220eaa
3 changed files with 14 additions and 10 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue