Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Disable comment submit button when sending the comment

Chocobozzz0d16506cce36
diff --git a/client/src/app/videos/+video-watch/comment/video-comment-add.component.html b/client/src/app/videos/+video-watch/comment/video-comment-add.component.html
index eaf068cfa4..8ea7f04edc 100644
--- a/client/src/app/videos/+video-watch/comment/video-comment-add.component.html
+++ b/client/src/app/videos/+video-watch/comment/video-comment-add.component.html
@@ -14,7 +14,7 @@
</div>
<div class="submit-comment">
- <button *ngIf="isAddButtonDisplayed()" [ngClass]="{ disabled: !form.valid }" i18n>
+ <button *ngIf="isAddButtonDisplayed()" [ngClass]="{ disabled: !form.valid || addingComment }" i18n>
Post comment
</button>
</div>