aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-19 10:38:24 +0100
committerChocobozzz <me@florianbigard.com>2018-02-19 10:48:44 +0100
commit1263fc4e6eff9ba4bf4c706c6e37c2e556bf8eb5 (patch)
tree00c27b7e6a81dfc04a8cc86ba782df1e9d0c1db8 /client/src/app/videos/+video-watch/comment/video-comment-add.component.ts
parent3bb6c52645af84832212c99fdec04143e4230180 (diff)
downloadPeerTube-1263fc4e6eff9ba4bf4c706c6e37c2e556bf8eb5.tar.gz
PeerTube-1263fc4e6eff9ba4bf4c706c6e37c2e556bf8eb5.tar.zst
PeerTube-1263fc4e6eff9ba4bf4c706c6e37c2e556bf8eb5.zip
Improve comment highlighting
Diffstat (limited to 'client/src/app/videos/+video-watch/comment/video-comment-add.component.ts')
-rw-r--r--client/src/app/videos/+video-watch/comment/video-comment-add.component.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts b/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts
index 3e064efcb..9e499d829 100644
--- a/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts
+++ b/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts
@@ -69,6 +69,13 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit {
69 } 69 }
70 } 70 }
71 71
72 onValidKey () {
73 this.onValueChanged()
74 if (!this.form.valid) return
75
76 this.formValidated()
77 }
78
72 formValidated () { 79 formValidated () {
73 const commentCreate: VideoCommentCreate = this.form.value 80 const commentCreate: VideoCommentCreate = this.form.value
74 let obs: Observable<any> 81 let obs: Observable<any>