From 370240824e2fb28b314255f6c23f5ea7d6b08625 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Tue, 19 Jan 2021 13:43:33 +0100 Subject: Allow users/visitors to search through an account's videos (#3589) * WIP: account search * add search to account view * add tests for account search --- .../src/app/+accounts/accounts-routing.module.ts | 34 ++++++++++++++-------- 1 file changed, 22 insertions(+), 12 deletions(-) (limited to 'client/src/app/+accounts/accounts-routing.module.ts') 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' import { AccountVideosComponent } from './account-videos/account-videos.component' import { AccountAboutComponent } from './account-about/account-about.component' import { AccountVideoChannelsComponent } from './account-video-channels/account-video-channels.component' +import { AccountSearchComponent } from './account-search/account-search.component' const accountsRoutes: Routes = [ { @@ -21,6 +22,24 @@ const accountsRoutes: Routes = [ redirectTo: 'video-channels', pathMatch: 'full' }, + { + path: 'video-channels', + component: AccountVideoChannelsComponent, + data: { + meta: { + title: $localize`Account video channels` + } + } + }, + { + path: 'about', + component: AccountAboutComponent, + data: { + meta: { + title: $localize`About account` + } + } + }, { path: 'videos', component: AccountVideosComponent, @@ -35,20 +54,11 @@ const accountsRoutes: Routes = [ } }, { - path: 'video-channels', - component: AccountVideoChannelsComponent, + path: 'search', + component: AccountSearchComponent, data: { meta: { - title: $localize`Account video channels` - } - } - }, - { - path: 'about', - component: AccountAboutComponent, - data: { - meta: { - title: $localize`About account` + title: $localize`Search videos within account` } } } -- cgit v1.2.3