mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
change home
This commit is contained in:
@@ -62,20 +62,25 @@ export class EventListPage implements OnInit {
|
||||
if(window.location.pathname.includes('gabinete-digital')) {
|
||||
this.showFilter = true
|
||||
}
|
||||
|
||||
if(!this.segment) {
|
||||
if(this.eventService.calendarNamesAry.includes('Meu calendario')) {
|
||||
this.segment = 'Meu calendario';
|
||||
} else {
|
||||
this.segment = this.eventService.calendarNamesAry[0].OwnerUserId
|
||||
}
|
||||
|
||||
|
||||
this.eventService.onCalendarFinishLoad.subscribe(() => {
|
||||
if(!this.segment) {
|
||||
if(this.eventService.calendarNamesAry.includes('Meu calendario')) {
|
||||
this.segment = 'Meu calendario';
|
||||
} else {
|
||||
this.segment = this.eventService.calendarNamesAry[0].OwnerUserId
|
||||
}
|
||||
|
||||
// select pr by default
|
||||
const pr = this.eventService.calendarNamesAry.find( e => e.Role == 'Presidente da República')
|
||||
if(pr) {
|
||||
this.segment = pr.OwnerUserId
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
// select pr by default
|
||||
// const pr = this.eventService.calendarNamesAry.find( e => e.Role == 'Presidente da República')
|
||||
// if(pr) {
|
||||
// this.segment = pr.OwnerUserId
|
||||
// }
|
||||
}
|
||||
|
||||
const location = window.location
|
||||
const pathname = location.pathname + location.search
|
||||
|
||||
Reference in New Issue
Block a user