mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
fix
This commit is contained in:
@@ -105,6 +105,8 @@ export class EventsService {
|
||||
|
||||
this.calendarNamesAry = []
|
||||
this.calendarNamesType = {}
|
||||
this.calendarNamesAryNoPr = []
|
||||
this.calendarNamesAryPR = []
|
||||
|
||||
this.hasSharedCalendar = false
|
||||
this.hasSharedOficial = false
|
||||
@@ -269,8 +271,6 @@ export class EventsService {
|
||||
this.calendarNamesType['Meu calendario']['RoleId'] = OwnerCalendar.CalendarRoleId
|
||||
this.calendarNamesType['Meu calendario']['OwnerId'] = OwnerCalendar.OwnerUserId || SessionStore.user.UserId
|
||||
}
|
||||
|
||||
|
||||
for (let sharedCalendar of SessionStore.user.SharedCalendars) {
|
||||
this.hasAnyCalendar = true
|
||||
if(sharedCalendar?.OwnerUserId) {
|
||||
@@ -388,6 +388,24 @@ export class EventsService {
|
||||
|
||||
}
|
||||
|
||||
|
||||
detectCalendarNameByCalendarId(calendarId) {
|
||||
|
||||
for ( const property in this.calendarNamesType) {
|
||||
if(this.calendarNamesType[property]?.['Oficial']) {
|
||||
if(this.calendarNamesType[property]['OficialId'] == calendarId) {
|
||||
return property
|
||||
}
|
||||
}
|
||||
if (this.calendarNamesType[property]?.['Pessoal']) {
|
||||
if(this.calendarNamesType[property]['PessoalId'] == calendarId) {
|
||||
return property
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
getAllPrOficialEvents(startdate: string, enddate: string): Observable<EventList[]> {
|
||||
let geturl = environment.apiURL + 'calendar/pr';
|
||||
@@ -1155,7 +1173,6 @@ export class EventsService {
|
||||
return this.http.post<any>(`${geturl}`, body, options)
|
||||
}
|
||||
|
||||
|
||||
genericPostExpedientEvent(docId: any, body: any, sharedagenda: string, serialNumber: any, applicationID: any, CalendarId) {
|
||||
const geturl = environment.apiURL + 'calendar/expediente';
|
||||
let params = new HttpParams();
|
||||
|
||||
Reference in New Issue
Block a user