mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
post generic event
This commit is contained in:
@@ -866,17 +866,18 @@ export class EventsService {
|
|||||||
|
|
||||||
let options: any;
|
let options: any;
|
||||||
|
|
||||||
const headers = [
|
const Selectedcalendar = SessionStore.user.OwnerCalendars.concat(SessionStore.user.SharedCalendars).find((calendar) =>{
|
||||||
this.headerSharedOficial,
|
return calendar.CalendarId == CalendarId
|
||||||
this.headerSharedPessoal,
|
|
||||||
this.headerOwnPessoal,
|
|
||||||
this.headerOwnOficial
|
|
||||||
]
|
|
||||||
|
|
||||||
const header = headers.find((header)=> {
|
|
||||||
return header?.get('CalendarId')?.includes(CalendarId)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
let header = new HttpHeaders();
|
||||||
|
|
||||||
|
header = header.set('Authorization',SessionStore.user.BasicAuthKey);
|
||||||
|
header = header.set('CalendarId', Selectedcalendar.CalendarId);
|
||||||
|
header = header.set('CalendarRoleId', Selectedcalendar.CalendarRoleId);
|
||||||
|
|
||||||
|
console.log(Selectedcalendar)
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
headers: header,
|
headers: header,
|
||||||
params: params
|
params: params
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user