]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+my-library/my-follows/my-followers.component.ts
Add mute status in account and channel pages
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-library / my-follows / my-followers.component.ts
index 413d524dfcf44c0a295ca56adaa4ee6bad9388ae..0dd9bf6f5fa212ee52128abb9a6cbcb0105e4472 100644 (file)
@@ -37,12 +37,19 @@ export class MyFollowersComponent implements OnInit {
     }
 
     this.auth.userInformationLoaded.subscribe(() => {
-      this.inputFilters = this.auth.getUser().videoChannels.map(c => {
+      const channelFilters = this.auth.getUser().videoChannels.map(c => {
         return {
-          queryParams: { search: 'channel:' + c.name },
-          label: $localize`Followers of ${c.name}`
+          value: 'channel:' + c.name,
+          label: c.name
         }
       })
+
+      this.inputFilters = [
+        {
+          title: $localize`Channel filters`,
+          children: channelFilters
+        }
+      ]
     })
   }