PeerTube/client/src/app/videos/+video-watch/comment/video-comment-add.component...

22 lines
701 B
HTML
Raw Normal View History

2017-12-27 16:11:53 +01:00
<form novalidate [formGroup]="form" (ngSubmit)="formValidated()">
2018-01-03 17:25:47 +01:00
<div class="avatar-and-textarea">
<img [src]="getUserAvatarUrl()" alt="Avatar" />
<div class="form-group">
2018-02-12 17:23:30 +01:00
<textarea placeholder="Add comment..." formControlName="text" [ngClass]="{ 'input-error': formErrors['text'] }"
2018-02-19 10:38:24 +01:00
(keyup.control.enter)="onValidKey()" (keyup.meta.enter)="onValidKey()" #textarea>
2018-01-05 11:19:25 +01:00
2018-01-03 17:25:47 +01:00
</textarea>
<div *ngIf="formErrors.text" class="form-error">
{{ formErrors.text }}
</div>
2017-12-27 16:11:53 +01:00
</div>
</div>
<div class="submit-comment">
<button *ngIf="isAddButtonDisplayed()" [ngClass]="{ disabled: !form.valid }">
Post comment
</button>
</div>
</form>