]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/app.component.ts
Add follower name in admin list
[github/Chocobozzz/PeerTube.git] / client / src / app / app.component.ts
index d2678096f7887b6bed4e0c621095f39ba4f4354c..55c7bbf99ec6d790be52040e8763be77d7f7a6e7 100644 (file)
@@ -1,5 +1,5 @@
 import { Component, OnInit } from '@angular/core'
-import { NavigationEnd, Router } from '@angular/router'
+import { GuardsCheckStart, NavigationEnd, Router } from '@angular/router'
 import { AuthService, ServerService } from '@app/core'
 import { isInMobileView } from '@app/shared/misc/utils'
 
@@ -57,7 +57,7 @@ export class AppComponent implements OnInit {
     this.router.events.subscribe(
       e => {
         // User clicked on a link in the menu, change the page
-        if (e instanceof NavigationEnd && isInMobileView()) {
+        if (e instanceof GuardsCheckStart && isInMobileView()) {
           this.isMenuDisplayed = false
         }
       }