feat: add view holiday component (#780)

Fixes: #749
This commit is contained in:
Benura Abeywardena
2020-05-22 19:35:22 +05:30
committed by GitHub
parent 5e1b1aeae5
commit 0bd07753a9
9 changed files with 238 additions and 6 deletions
@@ -301,6 +301,24 @@ export class OrganizationService {
return this.http.get('/holidays', { params: httpParams });
}
/**
* Get Holiday data.
* @param holidayId Holiday Id of holidays.
* @returns {Observable<any>} Holiday data.
*/
getHoliday(holidayId: string): Observable<any> {
return this.http.get(`/holidays/${holidayId}`);
}
/**
* Delete Holiday.
* @param holidayId Holiday Id to be deleted.
* @returns {Observable<any>} Resource Id.
*/
deleteHoliday(holidayId: string) {
return this.http.delete(`/holidays/${holidayId}`);
}
/**
* @param {any} employeeId Employee ID of Employee to be edited.
* @returns {Observable<any>}