diff options
Diffstat (limited to 'client/src/app/shared/images')
-rw-r--r-- | client/src/app/shared/images/global-icon.component.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/shared/images/global-icon.component.ts b/client/src/app/shared/images/global-icon.component.ts index 17186cff4..806aca347 100644 --- a/client/src/app/shared/images/global-icon.component.ts +++ b/client/src/app/shared/images/global-icon.component.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | import { ChangeDetectionStrategy, Component, ElementRef, Input, OnInit } from '@angular/core' | 1 | import { ChangeDetectionStrategy, Component, ElementRef, Input, OnInit } from '@angular/core' |
2 | import { HooksService } from '@app/core/plugins/hooks.service' | 2 | import { HooksService } from '@app/core/plugins/hooks.service' |
3 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
3 | 4 | ||
4 | const icons = { | 5 | const icons = { |
5 | 'add': require('!!raw-loader?!../../../assets/images/global/add.svg'), | 6 | 'add': require('!!raw-loader?!../../../assets/images/global/add.svg'), |
@@ -70,8 +71,7 @@ export class GlobalIconComponent implements OnInit { | |||
70 | ) { } | 71 | ) { } |
71 | 72 | ||
72 | async ngOnInit () { | 73 | async ngOnInit () { |
73 | const nativeElement = this.el.nativeElement | 74 | const nativeElement = this.el.nativeElement as HTMLElement |
74 | |||
75 | nativeElement.innerHTML = await this.hooks.wrapFun( | 75 | nativeElement.innerHTML = await this.hooks.wrapFun( |
76 | this.getSVGContent.bind(this), | 76 | this.getSVGContent.bind(this), |
77 | { name: this.iconName }, | 77 | { name: this.iconName }, |