mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
edit actions and video stop
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { HttpHeaders } from "@angular/common/http";
|
||||
import { calendarInterface } from "src/app/models/user.model";
|
||||
import { SessionStore } from "src/app/store/session.service";
|
||||
|
||||
export function DetectCalendars(CalendarId) {
|
||||
const calendars = SessionStore.user.OwnerCalendars.concat(SessionStore.user.SharedCalendars)
|
||||
return calendars.find((e) => e.CalendarId == CalendarId)
|
||||
}
|
||||
|
||||
export function makeHeaderForCalendar(calendar: calendarInterface) {
|
||||
let header = new HttpHeaders();;
|
||||
header = header.set('Authorization', 'Bearer ' + SessionStore.user.Authorization);
|
||||
header = header.set('CalendarId', calendar.CalendarId);
|
||||
header = header.set('CalendarRoleId', calendar.CalendarRoleId);
|
||||
header = header.set('CalendarName', calendar.CalendarName);
|
||||
return header
|
||||
}
|
||||
Reference in New Issue
Block a user