From 7738273b808f0ff1494f18c4cc13553505e6ac6d Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Fri, 10 Jan 2020 19:50:48 +0100 Subject: Accessibility fixes for #2149 --- client/src/app/shared/images/global-icon.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/app/shared/images') 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 @@ import { ChangeDetectionStrategy, Component, ElementRef, Input, OnInit } from '@angular/core' import { HooksService } from '@app/core/plugins/hooks.service' +import { I18n } from '@ngx-translate/i18n-polyfill' const icons = { 'add': require('!!raw-loader?!../../../assets/images/global/add.svg'), @@ -70,8 +71,7 @@ export class GlobalIconComponent implements OnInit { ) { } async ngOnInit () { - const nativeElement = this.el.nativeElement - + const nativeElement = this.el.nativeElement as HTMLElement nativeElement.innerHTML = await this.hooks.wrapFun( this.getSVGContent.bind(this), { name: this.iconName }, -- cgit v1.2.3