diff options
author | Chocobozzz <chocobozzz@framasoft.org> | 2020-06-11 10:36:04 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@framasoft.org> | 2020-06-11 10:36:04 +0200 |
commit | fa58a19819cb821a5c5a26802efd492461be9c04 (patch) | |
tree | 72bd8307da8ac447bb9934b1301ab0d93ea97e6b /client/src/app/shared/video/modals/video-block.component.html | |
parent | 50a04125dac1a126cb79a9fb575fcf673c5ac2d6 (diff) | |
parent | e95bede8fe660a38c99e51560caa5dd58a8eb23e (diff) | |
download | PeerTube-fa58a19819cb821a5c5a26802efd492461be9c04.tar.gz PeerTube-fa58a19819cb821a5c5a26802efd492461be9c04.tar.zst PeerTube-fa58a19819cb821a5c5a26802efd492461be9c04.zip |
Merge branch 'blacklist' into 'develop'
rename blacklist to block/blocklist, merge block and auto-block views
See merge request framasoft/peertube/PeerTube!30
Diffstat (limited to 'client/src/app/shared/video/modals/video-block.component.html')
-rw-r--r-- | client/src/app/shared/video/modals/video-block.component.html | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/client/src/app/shared/video/modals/video-block.component.html b/client/src/app/shared/video/modals/video-block.component.html new file mode 100644 index 000000000..a8dd30b5e --- /dev/null +++ b/client/src/app/shared/video/modals/video-block.component.html | |||
@@ -0,0 +1,45 @@ | |||
1 | <ng-template #modal> | ||
2 | <div class="modal-header"> | ||
3 | <h4 i18n class="modal-title">Blocklist video</h4> | ||
4 | <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon> | ||
5 | </div> | ||
6 | |||
7 | <div class="modal-body"> | ||
8 | |||
9 | <form novalidate [formGroup]="form" (ngSubmit)="block()"> | ||
10 | <div class="form-group"> | ||
11 | <textarea | ||
12 | i18n-placeholder placeholder="Reason..." formControlName="reason" | ||
13 | [ngClass]="{ 'input-error': formErrors['reason'] }" class="form-control" | ||
14 | ></textarea> | ||
15 | <div *ngIf="formErrors.reason" class="form-error"> | ||
16 | {{ formErrors.reason }} | ||
17 | </div> | ||
18 | </div> | ||
19 | |||
20 | <div class="form-group" *ngIf="video.isLocal"> | ||
21 | <my-peertube-checkbox | ||
22 | inputName="unfederate" formControlName="unfederate" | ||
23 | i18n-labelText labelText="Unfederate the video" | ||
24 | > | ||
25 | <ng-container ngProjectAs="description"> | ||
26 | <span i18n>This will ask remote instances to delete it</span> | ||
27 | </ng-container> | ||
28 | </my-peertube-checkbox> | ||
29 | </div> | ||
30 | |||
31 | <div class="form-group inputs"> | ||
32 | <input | ||
33 | type="button" role="button" i18n-value value="Cancel" class="action-button action-button-cancel" | ||
34 | (click)="hide()" (key.enter)="hide()" | ||
35 | > | ||
36 | |||
37 | <input | ||
38 | type="submit" i18n-value value="Submit" class="action-button-submit" | ||
39 | [disabled]="!form.valid" | ||
40 | > | ||
41 | </div> | ||
42 | </form> | ||
43 | |||
44 | </div> | ||
45 | </ng-template> | ||