feat: add centers action (manage groups) (#1107)

Fixes: #1106
This commit is contained in:
Muskan Khedia
2020-07-15 15:26:43 +05:30
committed by GitHub
parent fdbde1336e
commit 90b6e3cc6d
12 changed files with 236 additions and 8 deletions
+2 -1
View File
@@ -25,7 +25,7 @@ export class GroupsService {
* @param {string} name Filter value for groups names.
* @returns {Observable<any>} Groups.
*/
getFilteredGroups(orderBy: string, sortOrder: string, name: string, officeId?: any): Observable<any> {
getFilteredGroups(orderBy: string, sortOrder: string, name: string, officeId?: any, orphansOnly?: any): Observable<any> {
let httpParams = new HttpParams()
.set('name', name)
.set('sortOrder', sortOrder)
@@ -33,6 +33,7 @@ export class GroupsService {
if (officeId) {
httpParams = httpParams.set('officeId', officeId);
}
httpParams = orphansOnly ? httpParams.set('orphansOnly', orphansOnly) : httpParams;
return this.http.get('/groups', { params: httpParams });
}