X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-main%2Faccount%2Factor-avatar-info.component.ts;h=de78a390e1ead62e81e92d2d742e5ff4a8a26cd5;hb=123f61933611f326ea5a5e8c2ea253ee8720e4f0;hp=5daa54cb59c208806d156350a3c8a02b3d0ab253;hpb=b4c3c51dc874711febf43b719ca878436b31084d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-main/account/actor-avatar-info.component.ts b/client/src/app/shared/shared-main/account/actor-avatar-info.component.ts index 5daa54cb5..de78a390e 100644 --- a/client/src/app/shared/shared-main/account/actor-avatar-info.component.ts +++ b/client/src/app/shared/shared-main/account/actor-avatar-info.component.ts @@ -17,16 +17,12 @@ export class ActorAvatarInfoComponent implements OnInit { @Output() avatarChange = new EventEmitter() - maxSizeText: string - private serverConfig: ServerConfig constructor ( private serverService: ServerService, private notifier: Notifier - ) { - this.maxSizeText = $localize`max size` - } + ) { } ngOnInit (): void { this.serverConfig = this.serverService.getTmpConfig() @@ -58,4 +54,8 @@ export class ActorAvatarInfoComponent implements OnInit { get avatarExtensions () { return this.serverConfig.avatar.file.extensions.join(', ') } + + get avatarFormat () { + return `${$localize`max size`}: 192*192px, ${this.maxAvatarSizeInBytes} ${$localize`extensions`}: ${this.avatarExtensions}` + } }