2 <div class=
"modal-header">
3 <h4 i18n
class=
"modal-title" *
ngIf=
"!video.isLive">Block video "{{ video.name }}"
</h4>
4 <h4 i18n
class=
"modal-title" *
ngIf=
"video.isLive">Block live "{{ video.name }}"
</h4>
5 <my-global-icon iconName=
"cross" aria-label=
"Close" role=
"button" (click)=
"hide()"></my-global-icon>
8 <div class=
"modal-body">
10 <form novalidate [formGroup]=
"form" (ngSubmit)=
"block()">
11 <div class=
"form-group">
13 i18n-placeholder
placeholder=
"Please describe the reason..." formControlName=
"reason"
14 [ngClass]=
"{ 'input-error': formErrors['reason'] }" class=
"form-control"
16 <div *
ngIf=
"formErrors.reason" class=
"form-error">
17 {{ formErrors.reason }}
21 <div class=
"form-group" *
ngIf=
"video.isLocal">
23 inputName=
"unfederate" formControlName=
"unfederate"
24 i18n-labelText
labelText=
"Unfederate the video"
26 <ng-container ngProjectAs=
"description">
27 <span i18n
>This will ask remote instances to delete it
</span>
29 </my-peertube-checkbox>
32 <strong class=
"live-info" *
ngIf=
"video.isLive" i18n
>
33 Blocking this live will automatically terminate the live stream.
36 <div class=
"form-group inputs">
38 type=
"button" role=
"button" i18n-value
value=
"Cancel" class=
"action-button action-button-cancel"
39 (click)=
"hide()" (key.enter)=
"hide()"
43 type=
"submit" i18n-value
value=
"Submit" class=
"action-button-submit"
44 [disabled]=
"!form.valid"