Assets page pagination.

This commit is contained in:
softsimon
2020-08-13 00:46:44 +07:00
parent b1c8166936
commit 097e2ba0ea
5 changed files with 139 additions and 66 deletions

View File

@@ -13,7 +13,7 @@
</div>
</form>
<ng-template [ngIf]="!isLoading && !error">
<ng-container *ngIf="(assets$ | async) as filteredAssets; else isLoading">
<table class="table table-borderless table-striped">
<thead>
<th class="td-name">Name</th>
@@ -37,9 +37,9 @@
<ngb-pagination [collectionSize]="assets.length" [rotate]="true" [pageSize]="itemsPerPage" [(page)]="page" (pageChange)="pageChange(page)" [maxSize]="5" [boundaryLinks]="true"></ngb-pagination>
</ng-template>
</ng-container>
<ng-template [ngIf]="isLoading && !error">
<ng-template #isLoading>
<table class="table table-borderless table-striped">
<thead>