File tree 1 file changed +12
-12
lines changed
nimbus-ui/nimbusui/src/app/services
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -48,18 +48,18 @@ export class GridService {
48
48
return this . http . get ( url ) . map ( res => res . json ( ) . data ) ;
49
49
}
50
50
51
- getGridData ( page : number , pageSize : number , sort : PaginationPropertySort ) : Rx . Observable < PaginationPage < any > > {
52
- let params = new URLSearchParams ( ) ;
53
- params . set ( 'size' , `${ pageSize } ` ) ;
54
- params . set ( 'page' , `${ page } ` ) ;
55
- if ( sort != null ) {
56
- params . set ( 'sort' , `${ sort . property } ,${ sort . direction } ` ) ;
57
- }
51
+ // getGridData(page: number, pageSize: number, sort: PaginationPropertySort): Rx.Observable<PaginationPage<any>> {
52
+ // let params = new URLSearchParams();
53
+ // params.set('size', `${pageSize}`);
54
+ // params.set('page', `${page}`);
55
+ // if (sort != null) {
56
+ // params.set('sort', `${sort.property},${sort.direction}`);
57
+ // }
58
58
59
- let options = new RequestOptions ( {
60
- search : params
61
- } ) ;
62
- return this . http . get ( `${ webServiceEndpoint } /person` , options ) . map ( this . extractData ) . publish ( ) . refCount ( ) ;
63
- }
59
+ // let options = new RequestOptions({
60
+ // search: params
61
+ // });
62
+ // return this.http.get(`${webServiceEndpoint}/person`, options).map((res) => this.extractData).publish().refCount();
63
+ // }
64
64
65
65
}
You can’t perform that action at this time.
0 commit comments