diff options
author | Chocobozzz <me@florianbigard.com> | 2018-04-23 16:16:05 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-04-23 16:16:05 +0200 |
commit | 4bb6886d28cc5333bbe1523674bf5db141af456f (patch) | |
tree | 86276bfa11afdd4357ac45df2ead26a41f181069 /client/src/app/my-account/my-account-routing.module.ts | |
parent | 3186046d17cc09a3426d5ea67835f4c936cb18a3 (diff) | |
download | PeerTube-4bb6886d28cc5333bbe1523674bf5db141af456f.tar.gz PeerTube-4bb6886d28cc5333bbe1523674bf5db141af456f.tar.zst PeerTube-4bb6886d28cc5333bbe1523674bf5db141af456f.zip |
Rename account module to my-account
Diffstat (limited to 'client/src/app/my-account/my-account-routing.module.ts')
-rw-r--r-- | client/src/app/my-account/my-account-routing.module.ts | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/client/src/app/my-account/my-account-routing.module.ts b/client/src/app/my-account/my-account-routing.module.ts new file mode 100644 index 000000000..5a61db41f --- /dev/null +++ b/client/src/app/my-account/my-account-routing.module.ts | |||
@@ -0,0 +1,41 @@ | |||
1 | import { NgModule } from '@angular/core' | ||
2 | import { RouterModule, Routes } from '@angular/router' | ||
3 | import { MetaGuard } from '@ngx-meta/core' | ||
4 | import { LoginGuard } from '../core' | ||
5 | import { MyAccountComponent } from './my-account.component' | ||
6 | import { MyAccountSettingsComponent } from './my-account-settings/my-account-settings.component' | ||
7 | import { MyAccountVideosComponent } from './my-account-videos/my-account-videos.component' | ||
8 | |||
9 | const myAccountRoutes: Routes = [ | ||
10 | { | ||
11 | path: 'my-account', | ||
12 | component: MyAccountComponent, | ||
13 | canActivateChild: [ MetaGuard, LoginGuard ], | ||
14 | children: [ | ||
15 | { | ||
16 | path: 'settings', | ||
17 | component: MyAccountSettingsComponent, | ||
18 | data: { | ||
19 | meta: { | ||
20 | title: 'Account settings' | ||
21 | } | ||
22 | } | ||
23 | }, | ||
24 | { | ||
25 | path: 'videos', | ||
26 | component: MyAccountVideosComponent, | ||
27 | data: { | ||
28 | meta: { | ||
29 | title: 'Account videos' | ||
30 | } | ||
31 | } | ||
32 | } | ||
33 | ] | ||
34 | } | ||
35 | ] | ||
36 | |||
37 | @NgModule({ | ||
38 | imports: [ RouterModule.forChild(myAccountRoutes) ], | ||
39 | exports: [ RouterModule ] | ||
40 | }) | ||
41 | export class MyAccountRoutingModule {} | ||