2018-08-13 10:57:13 -04:00
|
|
|
<ng-template #modal>
|
|
|
|
<div class="modal-header">
|
2021-11-17 05:18:49 -05:00
|
|
|
<ng-container *ngIf="isMultiple()">
|
|
|
|
<h4 i18n class="modal-title">Block {{ videos.length }} videos</h4>
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
<ng-container *ngIf="!isMultiple()">
|
|
|
|
<h4 i18n class="modal-title" *ngIf="!getSingleVideo().isLive">Block video "{{ getSingleVideo().name }}"</h4>
|
|
|
|
<h4 i18n class="modal-title" *ngIf="getSingleVideo().isLive">Block live "{{ getSingleVideo().name }}"</h4>
|
|
|
|
</ng-container>
|
|
|
|
|
2019-01-16 10:05:40 -05:00
|
|
|
<my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon>
|
2018-08-13 10:57:13 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
2020-06-02 14:50:42 -04:00
|
|
|
<form novalidate [formGroup]="form" (ngSubmit)="block()">
|
2018-08-13 10:57:13 -04:00
|
|
|
<div class="form-group">
|
2020-04-02 05:39:14 -04:00
|
|
|
<textarea
|
2020-06-22 07:00:39 -04:00
|
|
|
i18n-placeholder placeholder="Please describe the reason..." formControlName="reason"
|
2020-04-02 05:39:14 -04:00
|
|
|
[ngClass]="{ 'input-error': formErrors['reason'] }" class="form-control"
|
|
|
|
></textarea>
|
2018-08-13 10:57:13 -04:00
|
|
|
<div *ngIf="formErrors.reason" class="form-error">
|
|
|
|
{{ formErrors.reason }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-11-17 05:18:49 -05:00
|
|
|
<div class="form-group" *ngIf="hasLocal()">
|
2019-01-10 09:39:51 -05:00
|
|
|
<my-peertube-checkbox
|
|
|
|
inputName="unfederate" formControlName="unfederate"
|
2021-11-17 05:18:49 -05:00
|
|
|
i18n-labelText labelText="Unfederate"
|
2020-03-06 10:58:55 -05:00
|
|
|
>
|
|
|
|
<ng-container ngProjectAs="description">
|
2021-11-17 05:18:49 -05:00
|
|
|
<span *ngIf="isMultiple()" i18n>This will ask remote instances to delete local videos</span>
|
|
|
|
<span *ngIf="!isMultiple()" i18n>This will ask remote instances to delete this video</span>
|
2020-03-06 10:58:55 -05:00
|
|
|
</ng-container>
|
|
|
|
</my-peertube-checkbox>
|
2019-01-10 09:39:51 -05:00
|
|
|
</div>
|
|
|
|
|
2021-11-17 05:18:49 -05:00
|
|
|
<strong class="live-info" *ngIf="hasLive()" i18n>
|
|
|
|
Blocking a live will automatically terminate the live stream.
|
2020-10-28 05:49:20 -04:00
|
|
|
</strong>
|
|
|
|
|
2018-08-13 10:57:13 -04:00
|
|
|
<div class="form-group inputs">
|
2020-04-02 05:39:14 -04:00
|
|
|
<input
|
2021-04-14 10:39:37 -04:00
|
|
|
type="button" role="button" i18n-value value="Cancel" class="peertube-button grey-button"
|
2020-04-02 05:39:14 -04:00
|
|
|
(click)="hide()" (key.enter)="hide()"
|
|
|
|
>
|
2018-08-13 10:57:13 -04:00
|
|
|
|
2021-11-17 05:18:49 -05:00
|
|
|
<input type="submit" i18n-value value="Block" class="peertube-button orange-button" [disabled]="!form.valid" />
|
2018-08-13 10:57:13 -04:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</ng-template>
|