diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-07-06 17:43:58 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-07-06 17:43:58 +0200 |
commit | 8b13c289f8db1666a3970882797d42f6cfd6128b (patch) | |
tree | 4e6183936260e01ed5a0cbd366ddc58f76c1a12b /client/src/app | |
parent | 4e1b09735de70dabc5987b8258a01aac8063ae26 (diff) | |
download | PeerTube-8b13c289f8db1666a3970882797d42f6cfd6128b.tar.gz PeerTube-8b13c289f8db1666a3970882797d42f6cfd6128b.tar.zst PeerTube-8b13c289f8db1666a3970882797d42f6cfd6128b.zip |
Fix page titles
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/+admin/admin-routing.module.ts | 3 | ||||
-rw-r--r-- | client/src/app/account/account-routing.module.ts | 3 | ||||
-rw-r--r-- | client/src/app/app.module.ts | 2 | ||||
-rw-r--r-- | client/src/app/login/login-routing.module.ts | 3 | ||||
-rw-r--r-- | client/src/app/signup/signup-routing.module.ts | 3 | ||||
-rw-r--r-- | client/src/app/videos/video-watch/video-watch.component.ts | 2 | ||||
-rw-r--r-- | client/src/app/videos/videos-routing.module.ts | 3 | ||||
-rw-r--r-- | client/src/app/videos/videos.module.ts | 2 |
8 files changed, 18 insertions, 3 deletions
diff --git a/client/src/app/+admin/admin-routing.module.ts b/client/src/app/+admin/admin-routing.module.ts index bcc94a9f3..03782c258 100644 --- a/client/src/app/+admin/admin-routing.module.ts +++ b/client/src/app/+admin/admin-routing.module.ts | |||
@@ -1,6 +1,8 @@ | |||
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 | 3 | ||
4 | import { MetaGuard } from '@ngx-meta/core' | ||
5 | |||
4 | import { AdminComponent } from './admin.component' | 6 | import { AdminComponent } from './admin.component' |
5 | import { FriendsRoutes } from './friends' | 7 | import { FriendsRoutes } from './friends' |
6 | import { RequestSchedulersRoutes } from './request-schedulers' | 8 | import { RequestSchedulersRoutes } from './request-schedulers' |
@@ -11,6 +13,7 @@ const adminRoutes: Routes = [ | |||
11 | { | 13 | { |
12 | path: '', | 14 | path: '', |
13 | component: AdminComponent, | 15 | component: AdminComponent, |
16 | canActivateChild: [ MetaGuard ], | ||
14 | children: [ | 17 | children: [ |
15 | { | 18 | { |
16 | path: '', | 19 | path: '', |
diff --git a/client/src/app/account/account-routing.module.ts b/client/src/app/account/account-routing.module.ts index e9b8f7031..029d97788 100644 --- a/client/src/app/account/account-routing.module.ts +++ b/client/src/app/account/account-routing.module.ts | |||
@@ -1,12 +1,15 @@ | |||
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 | 3 | ||
4 | import { MetaGuard } from '@ngx-meta/core' | ||
5 | |||
4 | import { AccountComponent } from './account.component' | 6 | import { AccountComponent } from './account.component' |
5 | 7 | ||
6 | const accountRoutes: Routes = [ | 8 | const accountRoutes: Routes = [ |
7 | { | 9 | { |
8 | path: 'account', | 10 | path: 'account', |
9 | component: AccountComponent, | 11 | component: AccountComponent, |
12 | canActivate: [ MetaGuard ], | ||
10 | data: { | 13 | data: { |
11 | meta: { | 14 | meta: { |
12 | title: 'My account' | 15 | title: 'My account' |
diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index d7c9f6548..804a7a71e 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts | |||
@@ -6,7 +6,7 @@ import { | |||
6 | createInputTransfer | 6 | createInputTransfer |
7 | } from '@angularclass/hmr' | 7 | } from '@angularclass/hmr' |
8 | 8 | ||
9 | import { MetaModule, MetaLoader, MetaStaticLoader, PageTitlePositioning } from '@nglibs/meta' | 9 | import { MetaModule, MetaLoader, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' |
10 | // TODO: remove, we need this to avoid error in ng2-smart-table | 10 | // TODO: remove, we need this to avoid error in ng2-smart-table |
11 | import 'rxjs/add/operator/toPromise' | 11 | import 'rxjs/add/operator/toPromise' |
12 | import 'bootstrap-loader' | 12 | import 'bootstrap-loader' |
diff --git a/client/src/app/login/login-routing.module.ts b/client/src/app/login/login-routing.module.ts index 1a91677c0..4d8913041 100644 --- a/client/src/app/login/login-routing.module.ts +++ b/client/src/app/login/login-routing.module.ts | |||
@@ -1,12 +1,15 @@ | |||
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 | 3 | ||
4 | import { MetaGuard } from '@ngx-meta/core' | ||
5 | |||
4 | import { LoginComponent } from './login.component' | 6 | import { LoginComponent } from './login.component' |
5 | 7 | ||
6 | const loginRoutes: Routes = [ | 8 | const loginRoutes: Routes = [ |
7 | { | 9 | { |
8 | path: 'login', | 10 | path: 'login', |
9 | component: LoginComponent, | 11 | component: LoginComponent, |
12 | canActivate: [ MetaGuard ], | ||
10 | data: { | 13 | data: { |
11 | meta: { | 14 | meta: { |
12 | title: 'Login' | 15 | title: 'Login' |
diff --git a/client/src/app/signup/signup-routing.module.ts b/client/src/app/signup/signup-routing.module.ts index 122d6c976..b7ac69b53 100644 --- a/client/src/app/signup/signup-routing.module.ts +++ b/client/src/app/signup/signup-routing.module.ts | |||
@@ -1,12 +1,15 @@ | |||
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 | 3 | ||
4 | import { MetaGuard } from '@ngx-meta/core' | ||
5 | |||
4 | import { SignupComponent } from './signup.component' | 6 | import { SignupComponent } from './signup.component' |
5 | 7 | ||
6 | const signupRoutes: Routes = [ | 8 | const signupRoutes: Routes = [ |
7 | { | 9 | { |
8 | path: 'signup', | 10 | path: 'signup', |
9 | component: SignupComponent, | 11 | component: SignupComponent, |
12 | canActivate: [ MetaGuard ], | ||
10 | data: { | 13 | data: { |
11 | meta: { | 14 | meta: { |
12 | title: 'Signup' | 15 | title: 'Signup' |
diff --git a/client/src/app/videos/video-watch/video-watch.component.ts b/client/src/app/videos/video-watch/video-watch.component.ts index 1284aa033..12ddf3eef 100644 --- a/client/src/app/videos/video-watch/video-watch.component.ts +++ b/client/src/app/videos/video-watch/video-watch.component.ts | |||
@@ -4,7 +4,7 @@ import { Observable } from 'rxjs/Observable' | |||
4 | import { Subscription } from 'rxjs/Subscription' | 4 | import { Subscription } from 'rxjs/Subscription' |
5 | 5 | ||
6 | import videojs from 'video.js' | 6 | import videojs from 'video.js' |
7 | import { MetaService } from '@nglibs/meta' | 7 | import { MetaService } from '@ngx-meta/core' |
8 | import { NotificationsService } from 'angular2-notifications' | 8 | import { NotificationsService } from 'angular2-notifications' |
9 | 9 | ||
10 | import { AuthService, ConfirmService } from '../../core' | 10 | import { AuthService, ConfirmService } from '../../core' |
diff --git a/client/src/app/videos/videos-routing.module.ts b/client/src/app/videos/videos-routing.module.ts index 7d002abde..e18c1cec0 100644 --- a/client/src/app/videos/videos-routing.module.ts +++ b/client/src/app/videos/videos-routing.module.ts | |||
@@ -1,6 +1,8 @@ | |||
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 | 3 | ||
4 | import { MetaGuard } from '@ngx-meta/core' | ||
5 | |||
4 | import { VideoAddComponent, VideoUpdateComponent } from './video-edit' | 6 | import { VideoAddComponent, VideoUpdateComponent } from './video-edit' |
5 | import { VideoListComponent } from './video-list' | 7 | import { VideoListComponent } from './video-list' |
6 | import { VideosComponent } from './videos.component' | 8 | import { VideosComponent } from './videos.component' |
@@ -10,6 +12,7 @@ const videosRoutes: Routes = [ | |||
10 | { | 12 | { |
11 | path: 'videos', | 13 | path: 'videos', |
12 | component: VideosComponent, | 14 | component: VideosComponent, |
15 | canActivateChild: [ MetaGuard ], | ||
13 | children: [ | 16 | children: [ |
14 | { | 17 | { |
15 | path: 'list', | 18 | path: 'list', |
diff --git a/client/src/app/videos/videos.module.ts b/client/src/app/videos/videos.module.ts index 75a8dd24f..7d2451de7 100644 --- a/client/src/app/videos/videos.module.ts +++ b/client/src/app/videos/videos.module.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { NgModule } from '@angular/core' | 1 | import { NgModule } from '@angular/core' |
2 | 2 | ||
3 | import { TagInputModule } from 'ng2-tag-input' | 3 | import { TagInputModule } from 'ngx-chips' |
4 | 4 | ||
5 | import { VideosRoutingModule } from './videos-routing.module' | 5 | import { VideosRoutingModule } from './videos-routing.module' |
6 | import { VideosComponent } from './videos.component' | 6 | import { VideosComponent } from './videos.component' |