mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
improve
This commit is contained in:
@@ -509,7 +509,7 @@ export class EventsService {
|
||||
return this.http.put<Event>(`${puturl}`, event, options)
|
||||
}
|
||||
|
||||
editEvent(event: Event, conflictResolutionMode: number, sendInvitationsOrCancellationsMode: number): Observable<Event> {
|
||||
editEvent(event: Event, conflictResolutionMode: number, sendInvitationsOrCancellationsMode: number, CalendarId? ): Observable<Event> {
|
||||
let arrayReq = [];
|
||||
arrayReq.push(event);
|
||||
const puturl = environment.apiURL + 'calendar/PutEvent';
|
||||
@@ -530,11 +530,18 @@ export class EventsService {
|
||||
this.headers = this.headersPrOficial;
|
||||
} else {
|
||||
|
||||
if(this.hasOwnCalendar) {
|
||||
this.headers = this.headerOwnOficial
|
||||
} else {
|
||||
this.headers = this.headerSharedOficial
|
||||
}
|
||||
const headers = [
|
||||
this.headerSharedOficial,
|
||||
this.headerSharedPessoal,
|
||||
this.headerOwnPessoal,
|
||||
this.headerOwnOficial
|
||||
]
|
||||
|
||||
const header = headers.find((header)=> {
|
||||
return header?.get('CalendarId')?.includes(CalendarId)
|
||||
})
|
||||
|
||||
this.headers = header
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -545,11 +552,18 @@ export class EventsService {
|
||||
this.headers = this.headersPrPessoal;
|
||||
}
|
||||
else {
|
||||
if(this.hasSharedCalendar) {
|
||||
this.headers = this.headerSharedPessoal
|
||||
} else {
|
||||
this.headers = this.headerOwnPessoal
|
||||
}
|
||||
const headers = [
|
||||
this.headerSharedOficial,
|
||||
this.headerSharedPessoal,
|
||||
this.headerOwnPessoal,
|
||||
this.headerOwnOficial
|
||||
]
|
||||
|
||||
const header = headers.find((header)=> {
|
||||
return header?.get('CalendarId')?.includes(CalendarId)
|
||||
})
|
||||
|
||||
this.headers = header
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user