Skip to content

Commit ad525b8

Browse files
Merge pull request #55 from openanthem/pagetype-fix
Commented out code that seemed to be a WIP.
2 parents a163a73 + bfd44c8 commit ad525b8

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

nimbus-ui/nimbusui/src/app/services/grid.service.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,18 @@ export class GridService {
4848
return this.http.get(url).map(res => res.json().data);
4949
}
5050

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+
// }
5858

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+
// }
6464

6565
}

0 commit comments

Comments
 (0)