2017-11-15 10:10:41 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="content-padding">
|
|
|
|
<h3>Following list</h3>
|
|
|
|
|
|
|
|
<p-dataTable
|
|
|
|
[value]="following" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage"
|
|
|
|
sortField="createdAt" (onLazyLoad)="loadLazy($event)"
|
|
|
|
>
|
|
|
|
<p-column field="id" header="ID"></p-column>
|
2017-11-20 11:19:23 +01:00
|
|
|
<p-column field="following.host" header="Host"></p-column>
|
2017-11-21 13:43:29 +01:00
|
|
|
<p-column field="state" header="State"></p-column>
|
2017-11-15 10:10:41 +01:00
|
|
|
<p-column field="createdAt" header="Created date" [sortable]="true"></p-column>
|
2017-11-20 11:19:23 +01:00
|
|
|
<p-column header="Unfollow" styleClass="action-cell">
|
|
|
|
<ng-template pTemplate="body" let-following="rowData">
|
|
|
|
<span (click)="removeFollowing(following)" class="glyphicon glyphicon-remove glyphicon-black" title="Unfollow"></span>
|
|
|
|
</ng-template>
|
|
|
|
</p-column>
|
2017-11-15 10:10:41 +01:00
|
|
|
</p-dataTable>
|
|
|
|
</div>
|
|
|
|
</div>
|