]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/comment/video-comment-add.component.html
Fix changing video in watch page
[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
C
2 <div class="avatar-and-textarea">
3 <img [src]="getUserAvatarUrl()" alt="Avatar" />
4
5 <div class="form-group">
6 <textarea placeholder="Add comment..." formControlName="text" [ngClass]="{ 'input-error': formErrors['text'] }" #textarea>
d7e70384 7
cf117aaa
C
8 </textarea>
9 <div *ngIf="formErrors.text" class="form-error">
10 {{ formErrors.text }}
11 </div>
4635f59d
C
12 </div>
13 </div>
14
15 <div class="submit-comment">
16 <button *ngIf="isAddButtonDisplayed()" [ngClass]="{ disabled: !form.valid }">
17 Post comment
18 </button>
19 </div>
20</form>