totoal_count is applied
This commit is contained in:
parent
144e5a0ad8
commit
c555761b8c
|
@ -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]"
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user