[Library | Trunk]: Subscribers show paging always
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60590 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
3a1ae30fe5
commit
c03709d7f6
|
@ -33,12 +33,12 @@
|
|||
<div>No subscribers for {{name}}</div>
|
||||
</div>
|
||||
<div *ngIf="showSubscribers.length > 0">
|
||||
<no-load-paging *ngIf="showSubscribers.length > pageSize" [type]="'subscribers'"
|
||||
<no-load-paging [type]="(subscribers.length > 1)?'subscribers':'subscriber'"
|
||||
(pageChange)="updatePage($event)"
|
||||
[page]="page" [pageSize]="pageSize"
|
||||
[totalResults]="showSubscribers.length">
|
||||
</no-load-paging>
|
||||
<div class="uk-margin-medium-top uk-margin-medium-bottom">
|
||||
<div class="uk-margin-top uk-margin-medium-bottom">
|
||||
<div class="uk-card uk-card-default uk-card-body uk-text-small uk-margin-bottom"
|
||||
*ngFor="let item of showSubscribers.slice((page - 1)*pageSize, page*pageSize)">
|
||||
<div class="uk-grid uk-grid-divider uk-flex uk-flex-middle" uk-grid>
|
||||
|
|
|
@ -50,7 +50,7 @@ export class SubscribersComponent implements OnInit, OnDestroy, OnChanges {
|
|||
public roleFb: FormGroup;
|
||||
/* Paging */
|
||||
page: number = 1;
|
||||
pageSize: number = 10;
|
||||
pageSize: number = 5;
|
||||
/* Search */
|
||||
filterForm: FormGroup;
|
||||
@ViewChild('inviteModal') inviteModal: AlertModal;
|
||||
|
|
Loading…
Reference in New Issue