This commit is contained in:
tiago.kayaya
2021-05-05 12:28:18 +01:00
+10 -6
View File
@@ -518,18 +518,19 @@ export class AgendaPage implements OnInit {
if(window.innerWidth < 800){
this.showTimeline = false;
// this.showTimeline = false;
switch (this.segment) {
case "Combinado":
//Inicializa o array eventSource
this.eventSource=[];
//this.eventSource=[];
if(this.profile == "mdgpr") {
this.eventService.getAllMdEvents( momentG(new Date(startTime),'yyyy-MM-dd HH:mm:ss'), momentG(new Date(endTime),'yyyy-MM-dd 23:59:59') ).subscribe(
response => {
// calendar
this.eventSource=[];
this.eventsList = response;
@@ -761,11 +762,11 @@ export class AgendaPage implements OnInit {
}
} else {
this.showTimelinePR = false;
this.showTimelineMD = false;
//this.showTimelinePR = false;
//this.showTimelineMD = false;
// calendar
this.eventSource=[];
this.eventService.getAllMdEvents( momentG(new Date(startTime),'yyyy-MM-dd HH:mm:ss'), momentG(new Date(endTime),'yyyy-MM-dd 23:59:59') ).subscribe(
response => {
@@ -780,6 +781,7 @@ export class AgendaPage implements OnInit {
this.eventsList = response;
}
this.eventSource=[];
// loop
this.eventsList.forEach((element, eventIndex) => {
@@ -825,6 +827,8 @@ export class AgendaPage implements OnInit {
this.eventsList = response;
}
this.eventSource=[];
this.eventsList.forEach((element, eventIndex) => {
// calendar