From d42212d96f532c0954ddb1cc113eaed3f87a203e Mon Sep 17 00:00:00 2001 From: ArtemDzhereleiko Date: Thu, 2 Sep 2021 11:19:19 +0300 Subject: [PATCH] update mdi.svg icon and remove some icon from app.component --- ui-ngx/src/app/app.component.ts | 25 ------------------- .../components/event/event-table-config.ts | 2 +- .../widget/data-keys.component.html | 12 ++++----- ui-ngx/src/assets/mdi.svg | 2 +- 4 files changed, 8 insertions(+), 33 deletions(-) diff --git a/ui-ngx/src/app/app.component.ts b/ui-ngx/src/app/app.component.ts index 2c089ac5a8..e0bd7fb720 100644 --- a/ui-ngx/src/app/app.component.ts +++ b/ui-ngx/src/app/app.component.ts @@ -50,31 +50,6 @@ export class AppComponent implements OnInit { this.matIconRegistry.addSvgIconSetInNamespace('mdi', this.domSanitizer.bypassSecurityTrustResourceUrl('./assets/mdi.svg')); - this.matIconRegistry.addSvgIconLiteral( - 'alpha-a-circle-outline', - this.domSanitizer.bypassSecurityTrustHtml( - '' - ) - ); - this.matIconRegistry.addSvgIconLiteral( - 'alpha-e-circle-outline', - this.domSanitizer.bypassSecurityTrustHtml( - '' - ) - ); - - this.matIconRegistry.addSvgIconLiteral( - 'filter-variant-remove', - this.domSanitizer.bypassSecurityTrustHtml( - '' - ) - ); - this.matIconRegistry.addSvgIconLiteral( 'google-logo', this.domSanitizer.bypassSecurityTrustHtml( diff --git a/ui-ngx/src/app/modules/home/components/event/event-table-config.ts b/ui-ngx/src/app/modules/home/components/event/event-table-config.ts index e972aee04c..49d8e87e44 100644 --- a/ui-ngx/src/app/modules/home/components/event/event-table-config.ts +++ b/ui-ngx/src/app/modules/home/components/event/event-table-config.ts @@ -121,7 +121,7 @@ export class EventTableConfig extends EntityTableConfig { this.headerActionDescriptors.push({ name: this.translate.instant('event.clear-filter'), - icon: 'filter-variant-remove', + icon: 'mdi:filter-variant-remove', isMdiIcon: true, isEnabled: () => !isEqual(this.filterParams, {}), onAction: ($event) => { diff --git a/ui-ngx/src/app/modules/home/components/widget/data-keys.component.html b/ui-ngx/src/app/modules/home/components/widget/data-keys.component.html index 03e5abeb3c..a876d4692d 100644 --- a/ui-ngx/src/app/modules/home/components/widget/data-keys.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/data-keys.component.html @@ -41,13 +41,13 @@ matTooltip="{{'datakey.attributes' | translate }}" matTooltipPosition="above"> + svgIcon="mdi:alpha-a-circle-outline"> + svgIcon="mdi:alpha-e-circle-outline"> + svgIcon="mdi:alpha-a-circle-outline"> + svgIcon="mdi:alpha-e-circle-outline"> + svgIcon="mdi:alpha-a-circle-outline"> + svgIcon="mdi:alpha-e-circle-outline"> diff --git a/ui-ngx/src/assets/mdi.svg b/ui-ngx/src/assets/mdi.svg index 75e8ffea7a..abc8408067 100644 --- a/ui-ngx/src/assets/mdi.svg +++ b/ui-ngx/src/assets/mdi.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file