]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+accounts/accounts-routing.module.ts
Update translations
[github/Chocobozzz/PeerTube.git] / client / src / app / +accounts / accounts-routing.module.ts
index ffe606b4372aa5b7d7c56a80e4f0c71c00c92b31..15937a67b5482f91152945920f86d6f2aeb46588 100644 (file)
@@ -5,8 +5,13 @@ 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 = [
+  {
+    path: 'peertube',
+    redirectTo: '/videos/local'
+  },
   {
     path: ':accountId',
     component: AccountsComponent,
@@ -14,33 +19,46 @@ const accountsRoutes: Routes = [
     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: 'about',
+        component: AccountAboutComponent,
         data: {
           meta: {
-            title: 'Account video channels'
+            title: $localize`About account`
           }
         }
       },
       {
-        path: 'about',
-        component: AccountAboutComponent,
+        path: 'videos',
+        component: AccountVideosComponent,
+        data: {
+          meta: {
+            title: $localize`Account videos`
+          },
+          reuse: {
+            enabled: true,
+            key: 'account-videos-list'
+          }
+        }
+      },
+      {
+        path: 'search',
+        component: AccountSearchComponent,
         data: {
           meta: {
-            title: 'About account'
+            title: $localize`Search videos within account`
           }
         }
       }