totoal_count is applied
This commit is contained in:
parent
144e5a0ad8
commit
c555761b8c
|
@ -260,7 +260,7 @@
|
|||
<mat-paginator
|
||||
class="sm:absolute sm:inset-x-0 sm:bottom-0 border-b sm:border-t sm:border-b-0 z-10 bg-gray-50 dark:bg-transparent"
|
||||
[ngClass]="{ 'pointer-events-none': isLoading }"
|
||||
[length]="pagination?.length"
|
||||
[length]="__casinoTotalCount"
|
||||
[pageIndex]="pagination?.page"
|
||||
[pageSize]="pagination?.size"
|
||||
[pageSizeOptions]="[5, 10, 25, 100]"
|
||||
|
|
|
@ -91,6 +91,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
searchInputControl = new FormControl();
|
||||
selectedCasino?: Casino;
|
||||
pagination?: CasinoPagination;
|
||||
__casinoTotalCount = 0;
|
||||
|
||||
private _unsubscribeAll: Subject<any> = new Subject<any>();
|
||||
|
||||
|
@ -138,6 +139,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
const listBettingHistory =
|
||||
listBettingHistoryResult.getBettingHistoryList();
|
||||
this.bettingHistorys$ = of(listBettingHistory);
|
||||
this.__casinoTotalCount = listBettingHistoryResult.getTotalCount();
|
||||
|
||||
// Mark for check
|
||||
this._changeDetectorRef.markForCheck();
|
||||
|
|
Loading…
Reference in New Issue
Block a user