Browse Source

Fix loading state

pull/2744/head
Thomas Kaul 2 years ago
parent
commit
bc01d03825
  1. 22
      libs/ui/src/lib/activities-table-lazy/activities-table-lazy.component.html

22
libs/ui/src/lib/activities-table-lazy/activities-table-lazy.component.html

@ -458,17 +458,6 @@
</table>
</div>
<mat-paginator
[length]="totalItems"
[ngClass]="{
'd-none': (isLoading && totalItems === 0) || totalItems <= pageSize
}"
[pageIndex]="pageIndex"
[pageSize]="pageSize"
[showFirstLastButtons]="true"
(page)="onChangePage($event)"
></mat-paginator>
<ngx-skeleton-loader
*ngIf="isLoading"
animation="pulse"
@ -479,6 +468,17 @@
}"
></ngx-skeleton-loader>
<mat-paginator
[length]="totalItems"
[ngClass]="{
'd-none': (isLoading && !totalItems) || totalItems <= pageSize
}"
[pageIndex]="pageIndex"
[pageSize]="pageSize"
[showFirstLastButtons]="true"
(page)="onChangePage($event)"
></mat-paginator>
<div
*ngIf="
dataSource?.data.length === 0 && hasPermissionToCreateActivity && !isLoading

Loading…
Cancel
Save