Remove unused property
This commit is contained in:
parent
ddfed6aedf
commit
df7008ddad
1 changed files with 1 additions and 5 deletions
|
@ -92,7 +92,6 @@ export type GlobalIconName = keyof typeof icons
|
||||||
})
|
})
|
||||||
export class GlobalIconComponent implements OnInit {
|
export class GlobalIconComponent implements OnInit {
|
||||||
@Input() iconName: GlobalIconName
|
@Input() iconName: GlobalIconName
|
||||||
@Input() width: string
|
|
||||||
|
|
||||||
constructor (
|
constructor (
|
||||||
private el: ElementRef,
|
private el: ElementRef,
|
||||||
|
@ -101,6 +100,7 @@ export class GlobalIconComponent implements OnInit {
|
||||||
|
|
||||||
async ngOnInit () {
|
async ngOnInit () {
|
||||||
const nativeElement = this.el.nativeElement as HTMLElement
|
const nativeElement = this.el.nativeElement as HTMLElement
|
||||||
|
|
||||||
nativeElement.innerHTML = await this.hooks.wrapFun(
|
nativeElement.innerHTML = await this.hooks.wrapFun(
|
||||||
this.getSVGContent.bind(this),
|
this.getSVGContent.bind(this),
|
||||||
{ name: this.iconName },
|
{ name: this.iconName },
|
||||||
|
@ -109,10 +109,6 @@ export class GlobalIconComponent implements OnInit {
|
||||||
'filter:internal.common.svg-icons.get-content.result'
|
'filter:internal.common.svg-icons.get-content.result'
|
||||||
)
|
)
|
||||||
nativeElement.ariaHidden = 'true'
|
nativeElement.ariaHidden = 'true'
|
||||||
|
|
||||||
if (this.width) {
|
|
||||||
nativeElement.style.width = this.width
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private getSVGContent (options: { name: GlobalIconName }) {
|
private getSVGContent (options: { name: GlobalIconName }) {
|
||||||
|
|
Loading…
Reference in a new issue