X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fcore%2Frouting%2Fmenu-guard.service.ts;h=58ad31cf4f8a5a45d15ae593247c97739bcd16d2;hb=b1dbb9fefc870a90b25f5c0153589f45c9e75e3e;hp=8c5bbfde92d7052844791d4b35e42f879bdc6429;hpb=9df52d660feb722404be00a50f3c8a612bec1c15;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/core/routing/menu-guard.service.ts b/client/src/app/core/routing/menu-guard.service.ts index 8c5bbfde9..58ad31cf4 100644 --- a/client/src/app/core/routing/menu-guard.service.ts +++ b/client/src/app/core/routing/menu-guard.service.ts @@ -4,11 +4,10 @@ import { MenuService } from '../menu' import { ScreenService } from '../wrappers' abstract class MenuGuard implements CanActivate, CanDeactivate { - display = true canDeactivate = this.canActivate - constructor (protected menu: MenuService, protected screen: ScreenService, display: boolean) { - this.display = display + constructor (protected menu: MenuService, protected screen: ScreenService, protected display: boolean) { + } canActivate (): boolean {