aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjonathanraes <jonathanraes@users.noreply.github.com>2018-02-12 17:23:30 +0100
committerChocobozzz <me@florianbigard.com>2018-02-12 17:23:30 +0100
commitd169c4ad46291b8895498da268800bec650b43f2 (patch)
tree924d04ba357d79186e22933593bb17fbcd8c1998
parenta87d467ad76505312fe63c597ee03a66126d0492 (diff)
downloadPeerTube-d169c4ad46291b8895498da268800bec650b43f2.tar.gz
PeerTube-d169c4ad46291b8895498da268800bec650b43f2.tar.zst
PeerTube-d169c4ad46291b8895498da268800bec650b43f2.zip
publish comment on crtl-enter (#290)
-rw-r--r--client/src/app/videos/+video-watch/comment/video-comment-add.component.html3
1 files changed, 2 insertions, 1 deletions
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 41d00da08..865908ba4 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
@@ -3,7 +3,8 @@
3 <img [src]="getUserAvatarUrl()" alt="Avatar" /> 3 <img [src]="getUserAvatarUrl()" alt="Avatar" />
4 4
5 <div class="form-group"> 5 <div class="form-group">
6 <textarea placeholder="Add comment..." formControlName="text" [ngClass]="{ 'input-error': formErrors['text'] }" #textarea> 6 <textarea placeholder="Add comment..." formControlName="text" [ngClass]="{ 'input-error': formErrors['text'] }"
7 (keyup.control.enter)="formValidated()" (keyup.meta.enter)="formValidated()" #textarea>
7 8
8 </textarea> 9 </textarea>
9 <div *ngIf="formErrors.text" class="form-error"> 10 <div *ngIf="formErrors.text" class="form-error">