X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Baccounts%2Faccounts-routing.module.ts;h=2f3792a8d51dc3c8e2800bbd14962529945d9d5f;hb=0f01a8bacddf6c502e6470e34fdac7750bb76e89;hp=ffe606b4372aa5b7d7c56a80e4f0c71c00c92b31;hpb=170726f523ff48f89da45473fc53ca54784f43dd;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+accounts/accounts-routing.module.ts b/client/src/app/+accounts/accounts-routing.module.ts index ffe606b43..2f3792a8d 100644 --- a/client/src/app/+accounts/accounts-routing.module.ts +++ b/client/src/app/+accounts/accounts-routing.module.ts @@ -1,46 +1,52 @@ import { NgModule } from '@angular/core' import { RouterModule, Routes } from '@angular/router' -import { MetaGuard } from '@ngx-meta/core' -import { AccountsComponent } from './accounts.component' -import { AccountVideosComponent } from './account-videos/account-videos.component' -import { AccountAboutComponent } from './account-about/account-about.component' +import { AccountSearchComponent } from './account-search/account-search.component' import { AccountVideoChannelsComponent } from './account-video-channels/account-video-channels.component' +import { AccountVideosComponent } from './account-videos/account-videos.component' +import { AccountsComponent } from './accounts.component' const accountsRoutes: Routes = [ + { + path: 'peertube', + redirectTo: '/videos/local' + }, { path: ':accountId', component: AccountsComponent, - canActivateChild: [ MetaGuard ], children: [ { path: '', - redirectTo: 'videos', + redirectTo: 'video-channels', pathMatch: 'full' }, { - path: 'videos', - component: AccountVideosComponent, + path: 'video-channels', + component: AccountVideoChannelsComponent, data: { meta: { - title: 'Account videos' + title: $localize`Account video channels` } } }, { - path: 'video-channels', - component: AccountVideoChannelsComponent, + path: 'videos', + component: AccountVideosComponent, data: { meta: { - title: 'Account video channels' + title: $localize`Account videos` + }, + reuse: { + enabled: true, + key: 'account-videos-list' } } }, { - path: 'about', - component: AccountAboutComponent, + path: 'search', + component: AccountSearchComponent, data: { meta: { - title: 'About account' + title: $localize`Search videos within account` } } }