@@ -21,10 +21,7 @@ import {Plan} from '../../../shared/models';
21
21
templateUrl : './billing-plan.component.html' ,
22
22
styleUrls : [ './billing-plan.component.scss' ] ,
23
23
} )
24
- export class BillingPlanComponent
25
- extends RouteComponentBaseDirective
26
- implements OnInit
27
- {
24
+ export class BillingPlanComponent extends RouteComponentBaseDirective {
28
25
gridApi : GridApi ;
29
26
gridOptions : GridOptions ;
30
27
limit = 5 ;
@@ -59,11 +56,6 @@ export class BillingPlanComponent
59
56
} ;
60
57
}
61
58
62
- ngOnInit ( ) : void {
63
- this . getBillingPlan ( ) ;
64
- // this.getTotal();
65
- }
66
-
67
59
onGridReady ( params : any ) {
68
60
this . gridApi = params . api ;
69
61
const dataSource : IDatasource = {
@@ -106,31 +98,8 @@ export class BillingPlanComponent
106
98
} ) ,
107
99
) ;
108
100
}
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
- }
129
101
130
102
getTotal ( ) : Observable < Count > {
131
103
return this . billingplanService . getTotalBillingPlan ( ) ;
132
- // .subscribe(resp => {
133
- // console.log(resp);
134
- // });
135
104
}
136
105
}
0 commit comments