This commit is contained in:
Peter Maquiran
2021-07-17 14:02:05 +01:00
parent 133e3ad122
commit b1c165bf87
23 changed files with 240 additions and 142 deletions
@@ -44,10 +44,15 @@ constructor(
const location = window.location
const pathname = location.pathname + location.search
this.LoadList();
this.router.events.forEach((event) => {
if (event instanceof NavigationEnd && event.url.startsWith(pathname)) {
this.LoadList();
if (event instanceof NavigationStart && event.url.startsWith(pathname)) {
if(window.location.pathname.split('/').length >= 4 && window.location.pathname.startsWith('/home/gabinete-digital')) {
this.refreshing()
} else {
this.LoadList()
}
}
});
@@ -232,18 +237,14 @@ constructor(
async refreshing() {
setTimeout(() => {
this.LoadList();
}, 1500);
}, 1000);
}
async doRefresh(event) {
console.log('refresh');
//this.loadDiplomas();
this.LoadList();
setTimeout(() => {
event.target.complete();
}, 2000);
this.LoadList();
}, 1000);
}
goBack() {