totoal_count is applied

This commit is contained in:
병준 박 2022-09-01 18:12:10 +00:00
parent 144e5a0ad8
commit c555761b8c
2 changed files with 3 additions and 1 deletions

View File

@ -260,7 +260,7 @@
<mat-paginator <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" 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 }" [ngClass]="{ 'pointer-events-none': isLoading }"
[length]="pagination?.length" [length]="__casinoTotalCount"
[pageIndex]="pagination?.page" [pageIndex]="pagination?.page"
[pageSize]="pagination?.size" [pageSize]="pagination?.size"
[pageSizeOptions]="[5, 10, 25, 100]" [pageSizeOptions]="[5, 10, 25, 100]"

View File

@ -91,6 +91,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
searchInputControl = new FormControl(); searchInputControl = new FormControl();
selectedCasino?: Casino; selectedCasino?: Casino;
pagination?: CasinoPagination; pagination?: CasinoPagination;
__casinoTotalCount = 0;
private _unsubscribeAll: Subject<any> = new Subject<any>(); private _unsubscribeAll: Subject<any> = new Subject<any>();
@ -138,6 +139,7 @@ export class ListComponent implements OnInit, AfterViewInit, OnDestroy {
const listBettingHistory = const listBettingHistory =
listBettingHistoryResult.getBettingHistoryList(); listBettingHistoryResult.getBettingHistoryList();
this.bettingHistorys$ = of(listBettingHistory); this.bettingHistorys$ = of(listBettingHistory);
this.__casinoTotalCount = listBettingHistoryResult.getTotalCount();
// Mark for check // Mark for check
this._changeDetectorRef.markForCheck(); this._changeDetectorRef.markForCheck();