diff options
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.ts | 7 |
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> |