Add manage buttons for own channels and account, video counts (#2421)
[oweals/peertube.git] / client / src / app / +accounts / accounts.component.ts
index da4a0b28e72d156c7b19365c8bf268bf0d4cfa94..3d486f084e5ccf02a073d313c7dc98c264a30945 100644 (file)
@@ -65,6 +65,11 @@ export class AccountsComponent implements OnInit, OnDestroy {
     )
   }
 
+  get isManageable () {
+    if (!this.authService.isLoggedIn()) return false
+    return this.user.id === this.authService.getUser().id
+  }
+
   onUserChanged () {
     this.getUserIfNeeded(this.account)
   }