projects
/
oweals
/
peertube.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add manage buttons for own channels and account, video counts (#2421)
[oweals/peertube.git]
/
client
/
src
/
app
/
+accounts
/
accounts.component.ts
diff --git
a/client/src/app/+accounts/accounts.component.ts
b/client/src/app/+accounts/accounts.component.ts
index da4a0b28e72d156c7b19365c8bf268bf0d4cfa94..3d486f084e5ccf02a073d313c7dc98c264a30945 100644
(file)
--- a/
client/src/app/+accounts/accounts.component.ts
+++ b/
client/src/app/+accounts/accounts.component.ts
@@
-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)
}