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
+3 -2
View File
@@ -213,8 +213,9 @@ export class CentersService {
return this.http.delete(`/centers/${centerId}`);
}
getCentersData(centerId: string) {
const httpParams = new HttpParams().set('associations', 'groupMembers,collectionMeetingCalendar');
getCentersData(centerId: string, associations: string, template?: string) {
let httpParams = new HttpParams().set('associations', associations);
httpParams = template ? httpParams.set('template', template) : httpParams;
return this.http.get(`/centers/${centerId}`, {params: httpParams});
}