feat: add holidays component (#730)

Fixes: #153
This commit is contained in:
Rishabh Verma
2020-05-11 15:25:30 +05:30
committed by GitHub
parent 4d3e58016d
commit e3d5bd8156
8 changed files with 211 additions and 2 deletions
@@ -227,4 +227,14 @@ export class OrganizationService {
return this.http.put('/workingdays', workingDays);
}
/*
* @param {string} officeId Office ID of Holidays.
* @returns {Observable<any>} Holidays data.
*/
getHolidays(officeId: string): Observable<any> {
const httpParams = new HttpParams()
.set('officeId', officeId.toString());
return this.http.get('/holidays', { params: httpParams });
}
}