mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
add role Id to event service
This commit is contained in:
@@ -256,21 +256,9 @@ export class EventsService {
|
||||
console.log('sharedCalendar.OwnerUserId',e)
|
||||
this.calendarNames[sharedCalendar.CalendarId] = e.FullName
|
||||
this.myCalendarNames[sharedCalendar.CalendarId] = e.FullName
|
||||
|
||||
console.log('ROLE',e.Role, e.FullName, e)
|
||||
|
||||
if(!this.calendarNamesAry.find(x => x.Role == e.Role)) {
|
||||
/* if(e.Role == "Presidente da República") {
|
||||
this.calendarNamesAry.push(e.Role)
|
||||
console.log('PR ROLE',this.calendarNamesAry)
|
||||
} else if (e.Role == "Ministro e Director do Gabinete do PR"){
|
||||
this.calendarNamesAry.push(e.Role)
|
||||
console.log('MD ROLE',this.calendarNamesAry)
|
||||
} else {
|
||||
this.calendarNamesAry.push(e.FullName)
|
||||
console.log('NORMAL ROLE',this.calendarNamesAry)
|
||||
} */
|
||||
//this.calendarRole.push(e.Role)
|
||||
|
||||
let objectShared = {
|
||||
"Fullname": e.FullName,
|
||||
"Role": e.Role,
|
||||
@@ -279,7 +267,6 @@ export class EventsService {
|
||||
|
||||
this.calendarNamesAry.push(objectShared)
|
||||
|
||||
console.log('objectShared',this.calendarNamesAry)
|
||||
this.calendarNamesType[e.FullName] = {}
|
||||
}
|
||||
|
||||
@@ -298,7 +285,6 @@ export class EventsService {
|
||||
|
||||
if(!this.calendarNamesAry.includes('Meu calendario')) {
|
||||
this.calendarNamesAry.push('Meu calendario')
|
||||
console.log(this.calendarNamesAry)
|
||||
this.calendarNamesType['Meu calendario'] = {}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user