X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bpage-not-found%2Fpage-not-found-routing.module.ts;h=84f400bb624301b9aa3fbe892a44f8a3020a7f78;hb=714e33a7428b71ef98129ce85a4bd64140bcd912;hp=306d2d54d845c02139d990bc686cef151b7f148b;hpb=a9614776665c8de5e752189408542f3a5478b5ba;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+page-not-found/page-not-found-routing.module.ts b/client/src/app/+page-not-found/page-not-found-routing.module.ts index 306d2d54d..84f400bb6 100644 --- a/client/src/app/+page-not-found/page-not-found-routing.module.ts +++ b/client/src/app/+page-not-found/page-not-found-routing.module.ts @@ -1,11 +1,19 @@ import { NgModule } from '@angular/core' import { RouterModule, Routes } from '@angular/router' import { PageNotFoundComponent } from './page-not-found.component' +import { MenuGuards } from '@app/core' const pageNotFoundRoutes: Routes = [ { path: '', - component: PageNotFoundComponent + component: PageNotFoundComponent, + canActivate: [ MenuGuards.close(true) ], + canDeactivate: [ MenuGuards.open(true) ], + data: { + meta: { + title: $localize`Not found` + } + } } ]