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