diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2021-01-19 13:43:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-19 13:43:33 +0100 |
commit | 370240824e2fb28b314255f6c23f5ea7d6b08625 (patch) | |
tree | 6d4350fd93ea0b960bd278a948cecbdfbd2b67d7 /client/src/app/+accounts/accounts-routing.module.ts | |
parent | 2264c1ceedcf27998108b8f8b706e51ed910d4fb (diff) | |
download | PeerTube-370240824e2fb28b314255f6c23f5ea7d6b08625.tar.gz PeerTube-370240824e2fb28b314255f6c23f5ea7d6b08625.tar.zst PeerTube-370240824e2fb28b314255f6c23f5ea7d6b08625.zip |
Allow users/visitors to search through an account's videos (#3589)
* WIP: account search
* add search to account view
* add tests for account search
Diffstat (limited to 'client/src/app/+accounts/accounts-routing.module.ts')
-rw-r--r-- | client/src/app/+accounts/accounts-routing.module.ts | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/client/src/app/+accounts/accounts-routing.module.ts b/client/src/app/+accounts/accounts-routing.module.ts index d2ca784b0..15937a67b 100644 --- a/client/src/app/+accounts/accounts-routing.module.ts +++ b/client/src/app/+accounts/accounts-routing.module.ts | |||
@@ -5,6 +5,7 @@ import { AccountsComponent } from './accounts.component' | |||
5 | import { AccountVideosComponent } from './account-videos/account-videos.component' | 5 | import { AccountVideosComponent } from './account-videos/account-videos.component' |
6 | import { AccountAboutComponent } from './account-about/account-about.component' | 6 | import { AccountAboutComponent } from './account-about/account-about.component' |
7 | import { AccountVideoChannelsComponent } from './account-video-channels/account-video-channels.component' | 7 | import { AccountVideoChannelsComponent } from './account-video-channels/account-video-channels.component' |
8 | import { AccountSearchComponent } from './account-search/account-search.component' | ||
8 | 9 | ||
9 | const accountsRoutes: Routes = [ | 10 | const accountsRoutes: Routes = [ |
10 | { | 11 | { |
@@ -22,6 +23,24 @@ const accountsRoutes: Routes = [ | |||
22 | pathMatch: 'full' | 23 | pathMatch: 'full' |
23 | }, | 24 | }, |
24 | { | 25 | { |
26 | path: 'video-channels', | ||
27 | component: AccountVideoChannelsComponent, | ||
28 | data: { | ||
29 | meta: { | ||
30 | title: $localize`Account video channels` | ||
31 | } | ||
32 | } | ||
33 | }, | ||
34 | { | ||
35 | path: 'about', | ||
36 | component: AccountAboutComponent, | ||
37 | data: { | ||
38 | meta: { | ||
39 | title: $localize`About account` | ||
40 | } | ||
41 | } | ||
42 | }, | ||
43 | { | ||
25 | path: 'videos', | 44 | path: 'videos', |
26 | component: AccountVideosComponent, | 45 | component: AccountVideosComponent, |
27 | data: { | 46 | data: { |
@@ -35,20 +54,11 @@ const accountsRoutes: Routes = [ | |||
35 | } | 54 | } |
36 | }, | 55 | }, |
37 | { | 56 | { |
38 | path: 'video-channels', | 57 | path: 'search', |
39 | component: AccountVideoChannelsComponent, | 58 | component: AccountSearchComponent, |
40 | data: { | 59 | data: { |
41 | meta: { | 60 | meta: { |
42 | title: $localize`Account video channels` | 61 | title: $localize`Search videos within account` |
43 | } | ||
44 | } | ||
45 | }, | ||
46 | { | ||
47 | path: 'about', | ||
48 | component: AccountAboutComponent, | ||
49 | data: { | ||
50 | meta: { | ||
51 | title: $localize`About account` | ||
52 | } | 62 | } |
53 | } | 63 | } |
54 | } | 64 | } |