]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+my-library/my-videos/my-videos.component.ts
Rename studio to editor
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-library / my-videos / my-videos.component.ts
index a117d0915dfe9b65a7d0b0d1fb2fb208c20c4eaf..a364b9b6ae931674c79dd55a22d65ba3540fc63e 100644 (file)
@@ -82,7 +82,7 @@ export class MyVideosComponent implements OnInit, DisableForReuseHook {
 
       const channelFilters = this.userChannels.map(c => {
         return {
-          queryParams: { search: 'channel:' + c.name },
+          value: 'channel:' + c.name,
           label: c.name
         }
       })
@@ -92,7 +92,7 @@ export class MyVideosComponent implements OnInit, DisableForReuseHook {
           title: $localize`Advanced filters`,
           children: [
             {
-              queryParams: { search: 'isLive:true' },
+              value: 'isLive:true',
               label: $localize`Only live videos`
             }
           ]
@@ -204,6 +204,12 @@ export class MyVideosComponent implements OnInit, DisableForReuseHook {
 
   private buildActions () {
     this.videoActions = [
+      {
+        label: $localize`Studio`,
+        linkBuilder: ({ video }) => [ '/studio/edit', video.uuid ],
+        isDisplayed: ({ video }) => video.isEditableBy(this.authService.getUser(), this.serverService.getHTMLConfig().videoStudio.enabled),
+        iconName: 'film'
+      },
       {
         label: $localize`Display live information`,
         handler: ({ video }) => this.displayLiveInformation(video),