]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+video-channels/video-channels-routing.module.ts
Auto focus plugin search input
[github/Chocobozzz/PeerTube.git] / client / src / app / +video-channels / video-channels-routing.module.ts
index 935578d2a4ff20486d9589c23b09a8405b973403..f8c32f14ee8206e6fdd09adc3b9bef29eb0c8bbf 100644 (file)
@@ -1,13 +1,14 @@
 import { NgModule } from '@angular/core'
 import { RouterModule, Routes } from '@angular/router'
 import { MetaGuard } from '@ngx-meta/core'
-import { VideoChannelsComponent } from './video-channels.component'
-import { VideoChannelVideosComponent } from './video-channel-videos/video-channel-videos.component'
 import { VideoChannelAboutComponent } from './video-channel-about/video-channel-about.component'
+import { VideoChannelPlaylistsComponent } from './video-channel-playlists/video-channel-playlists.component'
+import { VideoChannelVideosComponent } from './video-channel-videos/video-channel-videos.component'
+import { VideoChannelsComponent } from './video-channels.component'
 
 const videoChannelsRoutes: Routes = [
   {
-    path: ':videoChannelId',
+    path: ':videoChannelName',
     component: VideoChannelsComponent,
     canActivateChild: [ MetaGuard ],
     children: [
@@ -21,7 +22,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: 'video-playlists',
+        component: VideoChannelPlaylistsComponent,
+        data: {
+          meta: {
+            title: $localize`Video channel playlists`
           }
         }
       },
@@ -30,7 +44,7 @@ const videoChannelsRoutes: Routes = [
         component: VideoChannelAboutComponent,
         data: {
           meta: {
-            title: 'About video channel'
+            title: $localize`About video channel`
           }
         }
       }