]>
Commit | Line | Data |
---|---|---|
ab998f7b C |
1 | <p-table |
2 | [value]="following" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage" | |
3 | [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" | |
04e0fc48 | 4 | > |
ab998f7b C |
5 | <ng-template pTemplate="header"> |
6 | <tr> | |
b1d40cff C |
7 | <th i18n style="width: 60px">ID</th> |
8 | <th i18n>Host</th> | |
9 | <th i18n>State</th> | |
10 | <th i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th> | |
c48e82b5 | 11 | <th i18n>Redundancy allowed</th> |
ab998f7b C |
12 | <th></th> |
13 | </tr> | |
14 | </ng-template> | |
15 | ||
16 | <ng-template pTemplate="body" let-follow> | |
17 | <tr> | |
18 | <td>{{ follow.id }}</td> | |
19 | <td>{{ follow.following.host }}</td> | |
20 | <td>{{ follow.state }}</td> | |
21 | <td>{{ follow.createdAt }}</td> | |
c48e82b5 C |
22 | <td> |
23 | <my-redundancy-checkbox | |
24 | [host]="follow.following.host" [redundancyAllowed]="follow.following.hostRedundancyAllowed" | |
25 | ></my-redundancy-checkbox> | |
26 | </td> | |
ab998f7b C |
27 | <td class="action-cell"> |
28 | <my-delete-button (click)="removeFollowing(follow)"></my-delete-button> | |
29 | </td> | |
30 | </tr> | |
31 | </ng-template> | |
32 | </p-table> |