diff --git a/@overflow/target/component/list/list.component.html b/@overflow/target/component/list/list.component.html index b2f0256..a68af23 100644 --- a/@overflow/target/component/list/list.component.html +++ b/@overflow/target/component/list/list.component.html @@ -18,7 +18,7 @@ - {{rowIndex + 1}} + {{(rowIndex + 1) + ((pageIdx - 1) * countPerPage)}} {{target.infra.metaInfraType.name}} {{target.displayName}} @@ -30,7 +30,7 @@ - diff --git a/@overflow/target/component/list/list.component.ts b/@overflow/target/component/list/list.component.ts index 939d7b5..7ab9580 100644 --- a/@overflow/target/component/list/list.component.ts +++ b/@overflow/target/component/list/list.component.ts @@ -45,16 +45,18 @@ export class ListComponent implements OnInit, OnChanges { pending$: Observable; error$: Observable; + countPerPage: number; + constructor( private store: Store, private targetService: TargetService, private location: PlatformLocation ) { - + this.countPerPage = 2; } ngOnInit() { - this.getTargetList(); + // this.getTargetList(); } ngOnChanges(changes: SimpleChanges): void { @@ -76,7 +78,7 @@ export class ListComponent implements OnInit, OnChanges { const pageParams: PageParams = { pageNo: p, - countPerPage: 2, + countPerPage: this.countPerPage, sortCol: 'id', sortDirection: 'descending', };