mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
add performance
This commit is contained in:
@@ -244,7 +244,7 @@ export class GabineteDigitalPage implements OnInit {
|
||||
|
||||
const pathname = '/home/gabinete-digital'
|
||||
this.router.events.forEach((event) => {
|
||||
if (event instanceof NavigationEnd && event.url.includes(pathname)) {
|
||||
if (event instanceof NavigationEnd && event.url.includes(pathname) && !event.url.includes('/home/gabinete-digital/')) {
|
||||
this.waitForDomService.selector({
|
||||
selector: 'app-gabinete-digital ion-content .aside-wrapper',
|
||||
callback: () => {
|
||||
@@ -275,13 +275,22 @@ export class GabineteDigitalPage implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
functionTimer1 = null;
|
||||
|
||||
changeTab() {
|
||||
const element = this.scroll.nativeElement
|
||||
if(element.scrollTop == 0 ) {
|
||||
this.refresh = true
|
||||
} else {
|
||||
this.refresh = false
|
||||
}
|
||||
|
||||
clearTimeout(this.functionTimer1);
|
||||
|
||||
this.functionTimer1 = setTimeout(() => {
|
||||
|
||||
const element = this.scroll.nativeElement
|
||||
if(element.scrollTop == 0 ) {
|
||||
this.refresh = true
|
||||
} else {
|
||||
this.refresh = false
|
||||
}
|
||||
|
||||
}, 100);
|
||||
}
|
||||
|
||||
|
||||
@@ -388,8 +397,7 @@ export class GabineteDigitalPage implements OnInit {
|
||||
this.closeAllDesktopComponents();
|
||||
|
||||
// console.log(this.router.url, this.router.url.includes('processes=true'))
|
||||
// alert('hello')
|
||||
console.log(this.router.url, this.router.url)
|
||||
// alert('hello')s
|
||||
if (this.router.url.includes('processes=true')) {
|
||||
this.openAllProcessesPage();
|
||||
this.checkUser()
|
||||
|
||||
Reference in New Issue
Block a user