]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/comment/video-comment-add.component.html
Delete highlighted comment too if needed
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / comment / video-comment-add.component.html
CommitLineData
4635f59d 1<form novalidate [formGroup]="form" (ngSubmit)="formValidated()">
cf117aaa 2 <div class="avatar-and-textarea">
d3e91a5f 3 <img [src]="user.accountAvatarUrl" alt="Avatar" />
cf117aaa
C
4
5 <div class="form-group">
2d9fea16
RK
6 <textarea i18n-placeholder placeholder="Add comment..." autosize
7 formControlName="text" [ngClass]="{ 'input-error': formErrors['text'] }"
1263fc4e 8 (keyup.control.enter)="onValidKey()" (keyup.meta.enter)="onValidKey()" #textarea>
d7e70384 9
cf117aaa
C
10 </textarea>
11 <div *ngIf="formErrors.text" class="form-error">
12 {{ formErrors.text }}
13 </div>
4635f59d
C
14 </div>
15 </div>
16
17 <div class="submit-comment">
0d16506c 18 <button *ngIf="isAddButtonDisplayed()" [ngClass]="{ disabled: !form.valid || addingComment }" i18n>
4635f59d
C
19 Post comment
20 </button>
21 </div>
22</form>