diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-12-03 13:13:46 +0100 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2020-12-03 14:55:47 +0100 |
commit | 19b7ebfaa822b12f6da25ad2ba10398b3ef25ec6 (patch) | |
tree | ab602e242c52e0936eb8f958acfc343bd14f540e /client/src/app/+page-not-found/page-not-found-routing.module.ts | |
parent | 5bfc33b6f1caa50c607bd7334b4a72003c2bd1a6 (diff) | |
download | PeerTube-19b7ebfaa822b12f6da25ad2ba10398b3ef25ec6.tar.gz PeerTube-19b7ebfaa822b12f6da25ad2ba10398b3ef25ec6.tar.zst PeerTube-19b7ebfaa822b12f6da25ad2ba10398b3ef25ec6.zip |
refactor 404 page
Diffstat (limited to 'client/src/app/+page-not-found/page-not-found-routing.module.ts')
-rw-r--r-- | client/src/app/+page-not-found/page-not-found-routing.module.ts | 5 |
1 files changed, 3 insertions, 2 deletions
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 @@ | |||
1 | import { NgModule } from '@angular/core' | 1 | import { NgModule } from '@angular/core' |
2 | import { RouterModule, Routes } from '@angular/router' | 2 | import { RouterModule, Routes } from '@angular/router' |
3 | import { PageNotFoundComponent } from './page-not-found.component' | 3 | import { PageNotFoundComponent } from './page-not-found.component' |
4 | import { MetaGuard } from '@ngx-meta/core' | 4 | import { MenuGuards } from '@app/core' |
5 | 5 | ||
6 | const pageNotFoundRoutes: Routes = [ | 6 | const pageNotFoundRoutes: Routes = [ |
7 | { | 7 | { |
8 | path: '', | 8 | path: '', |
9 | component: PageNotFoundComponent, | 9 | component: PageNotFoundComponent, |
10 | canActivate: [ MetaGuard ], | 10 | canActivate: [ MenuGuards.close(true) ], |
11 | canDeactivate: [ MenuGuards.open(true) ], | ||
11 | data: { | 12 | data: { |
12 | meta: { | 13 | meta: { |
13 | title: $localize`Not found` | 14 | title: $localize`Not found` |