blob: ac30cec3984e38a1e0d18d6b4d019d437d1e12f5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<div class="admin-sub-header">
<div class="admin-sub-title">Blacklisted videos</div>
</div>
<p-table
[value]="blacklist" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage"
[sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)"
>
<ng-template pTemplate="header">
<tr>
<th pSortableColumn="name">Name <p-sortIcon field="name"></p-sortIcon></th>
<th>Description</th>
<th pSortableColumn="views">Views <p-sortIcon field="views"></p-sortIcon></th>
<th>NSFW</th>
<th>UUID</th>
<th pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
<th></th>
</tr>
</ng-template>
<ng-template pTemplate="body" let-videoBlacklist>
<tr>
<td>{{ videoBlacklist.name }}</td>
<td>{{ videoBlacklist.description }}</td>
<td>{{ videoBlacklist.views }}</td>
<td>{{ videoBlacklist.nsfw }}</td>
<td>{{ videoBlacklist.uuid }}</td>
<td>{{ videoBlacklist.createdAt }}</td>
<td class="action-cell">
<my-delete-button label="Unblacklist" (click)="removeVideoFromBlacklist(videoBlacklist)"></my-delete-button>
</td>
</tr>
</ng-template>
</p-table>
|