diff options
Diffstat (limited to 'client/src/app/account/account-routing.module.ts')
-rw-r--r-- | client/src/app/account/account-routing.module.ts | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/client/src/app/account/account-routing.module.ts b/client/src/app/account/account-routing.module.ts index 74d9aa03e..2e9de1cfb 100644 --- a/client/src/app/account/account-routing.module.ts +++ b/client/src/app/account/account-routing.module.ts | |||
@@ -5,17 +5,33 @@ import { MetaGuard } from '@ngx-meta/core' | |||
5 | 5 | ||
6 | import { LoginGuard } from '../core' | 6 | import { LoginGuard } from '../core' |
7 | import { AccountComponent } from './account.component' | 7 | import { AccountComponent } from './account.component' |
8 | import { AccountSettingsComponent } from './account-settings/account-settings.component' | ||
8 | 9 | ||
9 | const accountRoutes: Routes = [ | 10 | const accountRoutes: Routes = [ |
10 | { | 11 | { |
11 | path: 'account', | 12 | path: 'account', |
12 | component: AccountComponent, | 13 | component: AccountComponent, |
13 | canActivate: [ MetaGuard, LoginGuard ], | 14 | canActivateChild: [ MetaGuard, LoginGuard ], |
14 | data: { | 15 | children: [ |
15 | meta: { | 16 | { |
16 | title: 'My account' | 17 | path: 'settings', |
17 | } | 18 | component: AccountSettingsComponent, |
18 | } | 19 | data: { |
20 | meta: { | ||
21 | title: 'Account settings' | ||
22 | } | ||
23 | } | ||
24 | }, | ||
25 | // { | ||
26 | // path: 'videos', | ||
27 | // component: AccountVideosComponent, | ||
28 | // data: { | ||
29 | // meta: { | ||
30 | // title: 'Account videos' | ||
31 | // } | ||
32 | // } | ||
33 | // } | ||
34 | ] | ||
19 | } | 35 | } |
20 | ] | 36 | ] |
21 | 37 | ||