feat: add create group page (#601)

Fixes: #212
This commit is contained in:
Karan Takalkar
2020-05-22 17:39:09 +05:30
committed by GitHub
parent fd2c5f61ac
commit 68c30cfa4d
9 changed files with 395 additions and 5 deletions
+12
View File
@@ -16,6 +16,18 @@ export class ClientsService {
*/
constructor(private http: HttpClient) { }
getFilteredClients(orderBy: string, sortOrder: string, orphansOnly: boolean, displayName: string, officeId: any): Observable<any> {
let httpParams = new HttpParams()
.set('displayName', displayName)
.set('orphansOnly', orphansOnly.toString())
.set('sortOrder', sortOrder)
.set('orderBy', orderBy);
if (officeId) {
httpParams = httpParams.set('officeId', officeId);
}
return this.http.get('/clients', { params: httpParams });
}
getClients(orderBy: string, sortOrder: string, offset: number, limit: number): Observable<any> {
const httpParams = new HttpParams()
.set('offset', offset.toString())