2 [value]=
"followers" [lazy]=
"true" [paginator]=
"true" [totalRecords]=
"totalRecords" [rows]=
"rowsPerPage"
3 [sortField]=
"sort.field" [sortOrder]=
"sort.order" (onLazyLoad)=
"loadLazy($event)"
5 <ng-template pTemplate=
"caption">
8 type=
"text" name=
"table-filter" id=
"table-filter" i18n-placeholder
placeholder=
"Filter..."
9 (keyup)=
"onSearch($event.target.value)"
14 <ng-template pTemplate=
"header">
16 <th i18n
style=
"width: 60px">ID
</th>
17 <th i18n
>Follower handle
</th>
20 <th i18n
pSortableColumn=
"createdAt">Created
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
25 <ng-template pTemplate=
"body" let-follow
>
27 <td>{{ follow.id }}
</td>
28 <td>{{ follow.follower.name + '@' + follow.follower.host }}
</td>
30 <td *
ngIf=
"follow.state === 'accepted'" i18n
>Accepted
</td>
31 <td *
ngIf=
"follow.state === 'pending'" i18n
>Pending
</td>
33 <td>{{ follow.score }}
</td>
34 <td>{{ follow.createdAt }}
</td>
36 <td class=
"action-cell">
37 <ng-container *
ngIf=
"follow.state === 'pending'">
38 <my-button i18n-label
label=
"Accept" icon=
"tick" (click)=
"acceptFollower(follow)"></my-button>
39 <my-button i18n-label
label=
"Refuse" icon=
"cross" (click)=
"rejectFollower(follow)"></my-button>
42 <my-delete-button *
ngIf=
"follow.state === 'accepted'" (click)=
"deleteFollower(follow)"></my-delete-button>