From 145d7da2dea7234b0be0212a998d27efea4f1320 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 6 Mar 2023 16:16:43 +0100 Subject: Don't display alt for actor images We don't need it since it's just a "cosmetic" image --- .../src/app/shared/shared-actor-image/actor-avatar.component.ts | 9 --------- 1 file changed, 9 deletions(-) (limited to 'client/src/app/shared/shared-actor-image/actor-avatar.component.ts') diff --git a/client/src/app/shared/shared-actor-image/actor-avatar.component.ts b/client/src/app/shared/shared-actor-image/actor-avatar.component.ts index a52e68a17..8e6ad4015 100644 --- a/client/src/app/shared/shared-actor-image/actor-avatar.component.ts +++ b/client/src/app/shared/shared-actor-image/actor-avatar.component.ts @@ -43,20 +43,17 @@ export class ActorAvatarComponent implements OnInit, OnChanges { } classes: string[] = [] - alt: string defaultAvatarUrl: string avatarUrl: string ngOnInit () { this.buildDefaultAvatarUrl() - this.buildAlt() this.buildAvatarUrl() this.buildClasses() } ngOnChanges () { - this.buildAlt() this.buildAvatarUrl() this.buildClasses() } @@ -81,12 +78,6 @@ export class ActorAvatarComponent implements OnInit, OnChanges { } } - private buildAlt () { - if (this.isAccount()) this.alt = $localize`Account avatar` - else if (this.isChannel()) this.alt = $localize`Channel avatar` - else this.alt = '' - } - private buildDefaultAvatarUrl () { this.defaultAvatarUrl = this.isChannel() ? VideoChannel.GET_DEFAULT_AVATAR_URL(this.getSizeNumber()) -- cgit v1.2.3