]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/videos.routes.ts
Client: add titles to all pages
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / videos.routes.ts
index 1f088b376b1bb81e85f59c31831725cc43a845bf..ab68fbe0cbdaee9fbbd378086fe9b25d9e867b1e 100644 (file)
@@ -1,22 +1,32 @@
-import { RouterConfig } from '@angular/router';
+import { Routes } from '@angular/router';
 
 import { VideoAddComponent } from './video-add';
 import { VideoListComponent } from './video-list';
 import { VideosComponent } from './videos.component';
 import { VideoWatchComponent } from './video-watch';
 
-export const VideosRoutes: RouterConfig = [
+export const VideosRoutes: Routes = [
   {
     path: 'videos',
     component: VideosComponent,
     children: [
       {
         path: 'list',
-        component: VideoListComponent
+        component: VideoListComponent,
+        data: {
+          meta: {
+            titleSuffix: ' - Videos list'
+          }
+        }
       },
       {
         path: 'add',
-        component: VideoAddComponent
+        component: VideoAddComponent,
+        data: {
+          meta: {
+            titleSuffix: ' - Add a video'
+          }
+        }
       },
       {
         path: 'watch/:id',