Revert "wsl: Get the distro icon from the package family name"

This reverts commit 1e6c2cba76.
This commit is contained in:
Eugene
2024-07-18 23:57:58 +02:00
parent 4485e9a917
commit 72a5da5ac3
4 changed files with 3 additions and 54 deletions

View File

@@ -1,11 +1,7 @@
.icon(
[fastHtmlBind]='pngPath',
*ngIf='!isHTML && isPNG'
)
i.icon(
class='fa-fw {{icon}}',
[style.color]='color',
*ngIf='!isHTML && !isPNG'
*ngIf='!isHTML'
)
.icon(
[fastHtmlBind]='icon',

View File

@@ -12,15 +12,7 @@ export class ProfileIconComponent extends BaseComponent {
@Input() icon?: string
@Input() color?: string
get pngPath (): string {
return `<img src="${this.icon?.trim()}" width="16" height="16" />`
}
get isHTML (): boolean {
return this.icon?.startsWith('<') ?? false
}
get isPNG (): boolean {
return this.icon?.endsWith('.png') ?? false
}
}