X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bvideo-channels%2Fvideo-channels-routing.module.ts;h=4ee0528736c0a203c0d36496abdcb13ddf2a174f;hb=df1db951c512a58110171d046ef367789df02733;hp=3ac3533d9e41f9941b5d4249e68f53f0bc3d4196;hpb=2f1548fda32c3ba9e53913270394eedfacd55986;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+video-channels/video-channels-routing.module.ts b/client/src/app/+video-channels/video-channels-routing.module.ts index 3ac3533d9..4ee052873 100644 --- a/client/src/app/+video-channels/video-channels-routing.module.ts +++ b/client/src/app/+video-channels/video-channels-routing.module.ts @@ -1,15 +1,13 @@ import { NgModule } from '@angular/core' import { RouterModule, Routes } from '@angular/router' -import { MetaGuard } from '@ngx-meta/core' -import { VideoChannelsComponent } from './video-channels.component' +import { VideoChannelPlaylistsComponent } from './video-channel-playlists/video-channel-playlists.component' import { VideoChannelVideosComponent } from './video-channel-videos/video-channel-videos.component' -import { VideoChannelAboutComponent } from './video-channel-about/video-channel-about.component' +import { VideoChannelsComponent } from './video-channels.component' const videoChannelsRoutes: Routes = [ { path: ':videoChannelName', component: VideoChannelsComponent, - canActivateChild: [ MetaGuard ], children: [ { path: '', @@ -21,16 +19,20 @@ const videoChannelsRoutes: Routes = [ component: VideoChannelVideosComponent, data: { meta: { - title: 'Video channel videos' + title: $localize`Video channel videos` + }, + reuse: { + enabled: true, + key: 'video-channel-videos-list' } } }, { - path: 'about', - component: VideoChannelAboutComponent, + path: 'video-playlists', + component: VideoChannelPlaylistsComponent, data: { meta: { - title: 'About video channel' + title: $localize`Video channel playlists` } } }