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=19b7ebfaa822b12f6da25ad2ba10398b3ef25ec6;hp=11399fbfd4d7145024135bff504edef2ebbd7e04;hpb=1e7eb457eda647b4fa22a0ae8e59c0a618f662f8;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 11399fbfd..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,13 +1,14 @@ import { NgModule } from '@angular/core' import { RouterModule, Routes } from '@angular/router' import { PageNotFoundComponent } from './page-not-found.component' -import { MetaGuard } from '@ngx-meta/core' +import { MenuGuards } from '@app/core' const pageNotFoundRoutes: Routes = [ { path: '', component: PageNotFoundComponent, - canActivate: [ MetaGuard ], + canActivate: [ MenuGuards.close(true) ], + canDeactivate: [ MenuGuards.open(true) ], data: { meta: { title: $localize`Not found`