From 8bc5ba275c76ba47e55901b2163f4727dbf19067 Mon Sep 17 00:00:00 2001 From: splincode Date: Mon, 7 Oct 2024 15:31:41 +0300 Subject: [PATCH] refactor: drop deprecated `TuiImgLazyLoading` --- projects/kit/components/avatar/avatar.component.ts | 7 +------ projects/kit/components/avatar/avatar.template.html | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/projects/kit/components/avatar/avatar.component.ts b/projects/kit/components/avatar/avatar.component.ts index 69121802a0da..00c6c964c655 100644 --- a/projects/kit/components/avatar/avatar.component.ts +++ b/projects/kit/components/avatar/avatar.component.ts @@ -7,14 +7,13 @@ import { tuiAppearanceOptionsProvider, TuiWithAppearance, } from '@taiga-ui/core/directives/appearance'; -import {TuiImgLazyLoading} from '@taiga-ui/kit/directives'; import {TUI_AVATAR_OPTIONS} from './avatar.options'; @Component({ standalone: true, selector: 'tui-avatar,button[tuiAvatar],a[tuiAvatar]', - imports: [NgSwitch, NgSwitchCase, NgSwitchDefault, TuiIcon, TuiImgLazyLoading], + imports: [NgSwitch, NgSwitchCase, NgSwitchDefault, TuiIcon], templateUrl: './avatar.template.html', styleUrls: ['./avatar.style.less'], changeDetection: ChangeDetectionStrategy.OnPush, @@ -39,10 +38,6 @@ export class TuiAvatar { @Input() public src?: SafeResourceUrl | string | null; - protected get safeSrc(): string { - return this.src?.toString() ?? ''; - } - protected get value(): SafeResourceUrl | string { return this.src || ''; } diff --git a/projects/kit/components/avatar/avatar.template.html b/projects/kit/components/avatar/avatar.template.html index 87afbd9015e4..e84d7d420682 100644 --- a/projects/kit/components/avatar/avatar.template.html +++ b/projects/kit/components/avatar/avatar.template.html @@ -2,7 +2,7 @@