Persistent bug on console log solved

This commit is contained in:
Eudes Inácio
2022-04-26 15:19:48 +01:00
parent d5e6bbca2f
commit d9eea2605a
4 changed files with 35 additions and 31 deletions
+24 -23
View File
@@ -252,31 +252,32 @@ export class AgendaPage implements OnInit {
//this.getFromDB();
const pathname = window.location.pathname
let realoadCounter = 0
this.router.events.forEach((event) => {
if (event instanceof NavigationEnd && event.url == pathname) {
if (this.segment == null) {
this.segment = "Combinado";
setTimeout(() =>{
const pathname = window.location.pathname
let realoadCounter = 0
this.router.events.forEach((event) => {
if (event instanceof NavigationEnd && event.url == pathname) {
if (this.segment == null) {
this.segment = "Combinado";
}
if (realoadCounter != 0) {
this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate);
}
realoadCounter++;
}
if (realoadCounter != 0) {
this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate);
});
this.backgroundservice.registerBackService('Online', () => {
//this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate);
});
window.onresize = (event) => {
// if not table remove all component
if (window.innerWidth <= 1024) {
this.cloneAllmobileComponent();
}
realoadCounter++;
}
});
this.backgroundservice.registerBackService('Online', () => {
//this.loadRangeEvents(this.rangeStartDate, this.rangeEndDate);
});
window.onresize = (event) => {
// if not table remove all component
if (window.innerWidth <= 1024) {
this.cloneAllmobileComponent();
}
};
};
}, 1000)
}
//Go to the next view of the calendar month/week/day
+2 -2
View File
@@ -68,9 +68,9 @@ export class HeaderPage implements OnInit {
}
update() {
setInterval(() => {
/* setInterval(() => {
this.notificationLengthData();
}, 5000)
}, 5000) */
}