]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+page-not-found/page-not-found-routing.module.ts
Merge branch 'release/3.2.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / +page-not-found / page-not-found-routing.module.ts
index e3407099da25c5ed4eed753915f3febffd0ccd70..84f400bb624301b9aa3fbe892a44f8a3020a7f78 100644 (file)
@@ -1,16 +1,17 @@
 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: 'Not found'
+        title: $localize`Not found`
       }
     }
   }