Skip to content

Commit a7bd692

Browse files
committed
fix(arc-saas): pagination of billing component
pagination of billing component GH-34
1 parent 0c7c28b commit a7bd692

File tree

1 file changed

+1
-32
lines changed

1 file changed

+1
-32
lines changed

projects/saas-ui/src/app/main/components/billing-plan/billing-plan.component.ts

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ import {Plan} from '../../../shared/models';
2121
templateUrl: './billing-plan.component.html',
2222
styleUrls: ['./billing-plan.component.scss'],
2323
})
24-
export class BillingPlanComponent
25-
extends RouteComponentBaseDirective
26-
implements OnInit
27-
{
24+
export class BillingPlanComponent extends RouteComponentBaseDirective {
2825
gridApi: GridApi;
2926
gridOptions: GridOptions;
3027
limit = 5;
@@ -59,11 +56,6 @@ export class BillingPlanComponent
5956
};
6057
}
6158

62-
ngOnInit(): void {
63-
this.getBillingPlan();
64-
// this.getTotal();
65-
}
66-
6759
onGridReady(params: any) {
6860
this.gridApi = params.api;
6961
const dataSource: IDatasource = {
@@ -106,31 +98,8 @@ export class BillingPlanComponent
10698
}),
10799
);
108100
}
109-
getBillingPlan() {
110-
this.billingplanService
111-
.getBillingDetails()
112-
.pipe(takeUntil(this._destroy$))
113-
.subscribe(res => {
114-
this.rowData = res.map(item => {
115-
return {
116-
companyName: item.companyName,
117-
userName: item.userName,
118-
planName: item.planName,
119-
startDate: item.startDate,
120-
endDate: item.endDate,
121-
status: SubscriptionStatus[item.status],
122-
};
123-
});
124-
});
125-
}
126-
filter(filter: any) {
127-
throw new Error('Method not implemented.');
128-
}
129101

130102
getTotal(): Observable<Count> {
131103
return this.billingplanService.getTotalBillingPlan();
132-
// .subscribe(resp => {
133-
// console.log(resp);
134-
// });
135104
}
136105
}

0 commit comments

Comments
 (0)