Add manage buttons for own channels and account, video counts (#2421)
[oweals/peertube.git] / client / src / app / +video-channels / video-channels.component.ts
index 5ef46c58aaaf3771a6b71ec3347cc7502fb1ee12..493a6d499e6ef245e2b4a70fec075a32b4fdd5ee 100644 (file)
@@ -64,6 +64,11 @@ export class VideoChannelsComponent implements OnInit, OnDestroy {
     return this.authService.isLoggedIn()
   }
 
+  get isManageable () {
+    if (!this.isUserLoggedIn()) return false
+    return this.videoChannel.ownerAccount.userId === this.authService.getUser().id
+  }
+
   activateCopiedMessage () {
     this.notifier.success(this.i18n('Username copied'))
   }