]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/core/routing/menu-guard.service.ts
Refactor markdown/sanitize html code
[github/Chocobozzz/PeerTube.git] / client / src / app / core / routing / menu-guard.service.ts
index 9df2856351133da0ab9a87ef09bbdb090a5dcb1e..501e009c0925f25a08d8bc95c8b76466418d5d45 100644 (file)
@@ -15,7 +15,7 @@ abstract class MenuGuard implements CanActivate, CanDeactivate<any> {
     // small screens already have the site-wide onResize from screenService
     // > medium screens have enough space to fit the administrative menus
     if (!this.screen.isInMobileView() && this.screen.isInMediumView()) {
-      this.menu.isMenuDisplayed = this.display
+      this.menu.setMenuDisplay(this.display)
     }
     return true
   }