From 56d1c4677b787766b684cee633ae9b2932bef212 Mon Sep 17 00:00:00 2001 From: ArtemDzhereleiko Date: Wed, 1 Sep 2021 12:15:00 +0300 Subject: [PATCH] remove reset button form filter panel and add clear filter button to table config --- ui-ngx/src/app/app.component.ts | 7 +++++++ .../entity/entities-table.component.html | 3 ++- .../event/event-filter-panel.component.html | 5 ++--- .../event/event-filter-panel.component.ts | 15 --------------- .../components/event/event-table-config.ts | 19 +++++++++++++++++++ .../entity/entities-table-config.models.ts | 1 + .../assets/locale/locale.constant-en_US.json | 6 +++--- 7 files changed, 34 insertions(+), 22 deletions(-) diff --git a/ui-ngx/src/app/app.component.ts b/ui-ngx/src/app/app.component.ts index 39d51ced92..2c089ac5a8 100644 --- a/ui-ngx/src/app/app.component.ts +++ b/ui-ngx/src/app/app.component.ts @@ -68,6 +68,13 @@ export class AppComponent implements OnInit { ) ); + 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/entity/entities-table.component.html b/ui-ngx/src/app/modules/home/components/entity/entities-table.component.html index 539371301e..c4f470bbd2 100644 --- a/ui-ngx/src/app/modules/home/components/entity/entities-table.component.html +++ b/ui-ngx/src/app/modules/home/components/entity/entities-table.component.html @@ -85,7 +85,8 @@ matTooltip="{{ actionDescriptor.name }}" matTooltipPosition="above" (click)="actionDescriptor.onAction($event)"> - {{actionDescriptor.icon}} + + {{actionDescriptor.icon}}