X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-actor-image-edit%2Factor-avatar-edit.component.ts;h=840946690c8b80c3eddb1dda9a3987c31c8527d1;hb=c27463a603186b623500b03c6a56b330a6568350;hp=d0d269489e0aa551608c5a95c93009f025c363df;hpb=ec489ce2f74570f94dffb62266f4ed6f18621b3e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-actor-image-edit/actor-avatar-edit.component.ts b/client/src/app/shared/shared-actor-image-edit/actor-avatar-edit.component.ts index d0d269489..840946690 100644 --- a/client/src/app/shared/shared-actor-image-edit/actor-avatar-edit.component.ts +++ b/client/src/app/shared/shared-actor-image-edit/actor-avatar-edit.component.ts @@ -80,4 +80,16 @@ export class ActorAvatarEditComponent implements OnInit { isChannel () { return !!(this.actor as VideoChannel).ownerAccount } + + getChannel (): VideoChannel { + if (this.isChannel()) return this.actor as VideoChannel + + return undefined + } + + getAccount (): Account { + if (this.isChannel()) return undefined + + return this.actor as Account + } }