aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-moderation/video-block.component.html
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-17 11:18:49 +0100
committerChocobozzz <me@florianbigard.com>2021-11-17 11:18:49 +0100
commit3cfa817672657df18260ece5b354efa0f3b6e317 (patch)
tree318a7113fac4fcf1e6d0f7888cda1939aeefc500 /client/src/app/shared/shared-moderation/video-block.component.html
parent4bdff96d77c03e5cce6052188f69a65bf6ea5781 (diff)
downloadPeerTube-3cfa817672657df18260ece5b354efa0f3b6e317.tar.gz
PeerTube-3cfa817672657df18260ece5b354efa0f3b6e317.tar.zst
PeerTube-3cfa817672657df18260ece5b354efa0f3b6e317.zip
Add ability to bulk block videos
Diffstat (limited to 'client/src/app/shared/shared-moderation/video-block.component.html')
-rw-r--r--client/src/app/shared/shared-moderation/video-block.component.html24
1 files changed, 16 insertions, 8 deletions
diff --git a/client/src/app/shared/shared-moderation/video-block.component.html b/client/src/app/shared/shared-moderation/video-block.component.html
index 5e9e8493c..e5793f2ca 100644
--- a/client/src/app/shared/shared-moderation/video-block.component.html
+++ b/client/src/app/shared/shared-moderation/video-block.component.html
@@ -1,7 +1,14 @@
1<ng-template #modal> 1<ng-template #modal>
2 <div class="modal-header"> 2 <div class="modal-header">
3 <h4 i18n class="modal-title" *ngIf="!video.isLive">Block video "{{ video.name }}"</h4> 3 <ng-container *ngIf="isMultiple()">
4 <h4 i18n class="modal-title" *ngIf="video.isLive">Block live "{{ video.name }}"</h4> 4 <h4 i18n class="modal-title">Block {{ videos.length }} videos</h4>
5 </ng-container>
6
7 <ng-container *ngIf="!isMultiple()">
8 <h4 i18n class="modal-title" *ngIf="!getSingleVideo().isLive">Block video "{{ getSingleVideo().name }}"</h4>
9 <h4 i18n class="modal-title" *ngIf="getSingleVideo().isLive">Block live "{{ getSingleVideo().name }}"</h4>
10 </ng-container>
11
5 <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon> 12 <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon>
6 </div> 13 </div>
7 14
@@ -18,19 +25,20 @@
18 </div> 25 </div>
19 </div> 26 </div>
20 27
21 <div class="form-group" *ngIf="video.isLocal"> 28 <div class="form-group" *ngIf="hasLocal()">
22 <my-peertube-checkbox 29 <my-peertube-checkbox
23 inputName="unfederate" formControlName="unfederate" 30 inputName="unfederate" formControlName="unfederate"
24 i18n-labelText labelText="Unfederate the video" 31 i18n-labelText labelText="Unfederate"
25 > 32 >
26 <ng-container ngProjectAs="description"> 33 <ng-container ngProjectAs="description">
27 <span i18n>This will ask remote instances to delete it</span> 34 <span *ngIf="isMultiple()" i18n>This will ask remote instances to delete local videos</span>
35 <span *ngIf="!isMultiple()" i18n>This will ask remote instances to delete this video</span>
28 </ng-container> 36 </ng-container>
29 </my-peertube-checkbox> 37 </my-peertube-checkbox>
30 </div> 38 </div>
31 39
32 <strong class="live-info" *ngIf="video.isLive" i18n> 40 <strong class="live-info" *ngIf="hasLive()" i18n>
33 Blocking this live will automatically terminate the live stream. 41 Blocking a live will automatically terminate the live stream.
34 </strong> 42 </strong>
35 43
36 <div class="form-group inputs"> 44 <div class="form-group inputs">
@@ -39,7 +47,7 @@
39 (click)="hide()" (key.enter)="hide()" 47 (click)="hide()" (key.enter)="hide()"
40 > 48 >
41 49
42 <input type="submit" i18n-value value="Submit" class="peertube-button orange-button" [disabled]="!form.valid" /> 50 <input type="submit" i18n-value value="Block" class="peertube-button orange-button" [disabled]="!form.valid" />
43 </div> 51 </div>
44 </form> 52 </form>
45 53