mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
post generic event
This commit is contained in:
@@ -866,16 +866,17 @@ export class EventsService {
|
||||
|
||||
let options: any;
|
||||
|
||||
const headers = [
|
||||
this.headerSharedOficial,
|
||||
this.headerSharedPessoal,
|
||||
this.headerOwnPessoal,
|
||||
this.headerOwnOficial
|
||||
]
|
||||
|
||||
const header = headers.find((header)=> {
|
||||
return header?.get('CalendarId')?.includes(CalendarId)
|
||||
const Selectedcalendar = SessionStore.user.OwnerCalendars.concat(SessionStore.user.SharedCalendars).find((calendar) =>{
|
||||
return calendar.CalendarId == 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 = {
|
||||
headers: header,
|
||||
|
||||
Reference in New Issue
Block a user