change events agenda

This commit is contained in:
tiago.kayaya
2021-06-29 10:50:05 +01:00
parent 46e6e3fe88
commit a5be718a14
5 changed files with 57 additions and 37 deletions
+8 -5
View File
@@ -90,11 +90,6 @@ export class EventsService {
this.headers = new HttpHeaders();
this.headers = this.headers.set('Authorization', this.loggeduser.BasicAuthKey);
}
/* getAllEvents(startdate:string, enddate:string): Observable<Event[]>{
@@ -297,6 +292,14 @@ export class EventsService {
return this.http.put<Event>(`${puturl}`, event, options)
}
changeAgenda(body:any){
const puturl = environment.apiURL + 'Calendar/MoveEvent';
let options = {
headers: this.headers,
};
return this.http.post<any>(`${puturl}`, body, options);
}
/* postEvent(event:Event, calendarName:string, sharedagenda:string)
{
const puturl = environment.apiURL + 'calendar/' + ((sharedagenda != '') ? sharedagenda : 'PostEvent');