Fix initial sidebar view on route change
							parent
							
								
									e548d6821c
								
							
						
					
					
						commit
						1f24e19eec
					
				| 
						 | 
				
			
			@ -61,12 +61,8 @@ export class AppComponent implements OnInit {
 | 
			
		|||
          this.scrollToTop();
 | 
			
		||||
        }
 | 
			
		||||
        // show sidebar menu on initial stats page access
 | 
			
		||||
        if (router.url.includes('/stats')) {
 | 
			
		||||
          this.showSidebarToggleBtn = true;
 | 
			
		||||
          this.sidebarOpen = true;
 | 
			
		||||
        } else {
 | 
			
		||||
          this.showSidebarToggleBtn = false;
 | 
			
		||||
        }
 | 
			
		||||
        this.sidebarOpen = true;
 | 
			
		||||
        this.showSidebarToggleBtn = router.url.includes('/stats');
 | 
			
		||||
      }
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue