]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Disable comment submit button when sending the comment
authorChocobozzz <me@florianbigard.com>
Mon, 16 Jul 2018 13:01:32 +0000 (15:01 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 16 Jul 2018 13:01:32 +0000 (15:01 +0200)
client/src/app/videos/+video-watch/comment/video-comment-add.component.html

index eaf068cfa4d410d150e8d421d6abd6d2889b00d0..8ea7f04edcb8b787f51b5557dbf3b41c9397985b 100644 (file)
@@ -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>