hide Pagination in empty folder #1595 (#1811)

* hide Pagination in empty folder #1595

* unify isPaginationEnabled condition in template #1595
This commit is contained in:
Eugenio Romano
2017-04-13 12:12:27 +01:00
committed by Mario Romano
parent 09f3a6e30f
commit d4cc54d561
4 changed files with 55 additions and 28 deletions

View File

@@ -30,11 +30,10 @@
</no-content-template>
</div>
</alfresco-datatable>
<alfresco-pagination *ngIf="enablePagination"
<alfresco-pagination *ngIf="isPaginationEnabled()"
(changePageSize)="onChangePageSize($event)"
(nextPage)="onNextPage($event)"
(prevPage)="onPrevPage($event)"
[pagination]="pagination"
[supportedPageSizes]="[5, 10, 15, 20]">
</alfresco-pagination>