This commit is contained in:
Eudes Inácio
2021-06-25 10:20:25 +01:00
2 changed files with 39 additions and 6 deletions
+33
View File
@@ -1310,6 +1310,27 @@ export class AgendaPage implements OnInit {
this.timelineFilterState = segments
}
this.showTimelineFilterState = false;
setTimeout(()=>{
document.querySelectorAll('.EventListBox-container .EventListBox').forEach((e)=>{
if(e.childElementCount == 0) {
e.parentElement.style.display = 'none'
} else {
e.parentElement.style.display = 'block'
}
})
}, 10)
setTimeout(()=>{
document.querySelectorAll('.EventListBox-container .EventListBox').forEach((e)=>{
if(e.childElementCount == 0) {
e.parentElement.style.display = 'none'
} else {
e.parentElement.style.display = 'block'
}
})
}, 100)
}
@@ -1322,4 +1343,16 @@ export class AgendaPage implements OnInit {
return false
}
shoeEventDay(events: any[]) {
if ( this.segment == 'Combinado') {
return true;
}
const reuslt = events.filter((e)=> e.CalendarName == this.segment)
return reuslt.length != 0
}
}