From ac31c06f1ebe46129f83abb3549349c6e6f5269b Mon Sep 17 00:00:00 2001 From: rusikv Date: Tue, 11 Jul 2023 15:36:07 +0300 Subject: [PATCH] Removed unused service, generic event type used --- .../modules/home/components/event/event-table-config.ts | 6 ++---- .../home/components/event/event-table.component.ts | 9 +++------ 2 files changed, 5 insertions(+), 10 deletions(-) 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 7382633e33..565dbf14bf 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 @@ -21,7 +21,7 @@ import { EntityTableColumn, EntityTableConfig } from '@home/models/entity/entities-table-config.models'; -import { DebugEventType, DebugRuleNodeEventBody, Event, EventType, FilterEventBody } from '@shared/models/event.models'; +import { DebugEventType, Event, EventBody, EventType, FilterEventBody } from '@shared/models/event.models'; import { TimePageLink } from '@shared/models/page/page-link'; import { TranslateService } from '@ngx-translate/core'; import { DatePipe } from '@angular/common'; @@ -49,7 +49,6 @@ import { EventFilterPanelData, FilterEntityColumn } from '@home/components/event/event-filter-panel.component'; -import { NodeScriptTestService } from '@core/services/script/node-script-test.service'; export class EventTableConfig extends EntityTableConfig { @@ -87,9 +86,8 @@ export class EventTableConfig extends EntityTableConfig { private overlay: Overlay, private viewContainerRef: ViewContainerRef, private cd: ChangeDetectorRef, - private nodeScriptTestService: NodeScriptTestService, public testButtonLabel?: string, - private debugEventSelected?: EventEmitter) { + private debugEventSelected?: EventEmitter) { super(); this.loadDataOnInit = false; this.tableTitle = ''; diff --git a/ui-ngx/src/app/modules/home/components/event/event-table.component.ts b/ui-ngx/src/app/modules/home/components/event/event-table.component.ts index 80394de979..8a1d71eaf4 100644 --- a/ui-ngx/src/app/modules/home/components/event/event-table.component.ts +++ b/ui-ngx/src/app/modules/home/components/event/event-table.component.ts @@ -32,10 +32,9 @@ import { EntitiesTableComponent } from '@home/components/entity/entities-table.c import { EventTableConfig } from './event-table-config'; import { EventService } from '@core/http/event.service'; import { DialogService } from '@core/services/dialog.service'; -import { DebugEventType, DebugRuleNodeEventBody, EventType } from '@shared/models/event.models'; +import { DebugEventType, EventBody, EventType } from '@shared/models/event.models'; import { Overlay } from '@angular/cdk/overlay'; import { Subscription } from 'rxjs'; -import { NodeScriptTestService } from '@core/services/script/node-script-test.service'; import { isNotEmptyStr } from '@core/utils'; @Component({ @@ -109,7 +108,7 @@ export class EventTableComponent implements OnInit, AfterViewInit, OnDestroy { } @Output() - debugEventSelected = new EventEmitter(null); + debugEventSelected = new EventEmitter(); @ViewChild(EntitiesTableComponent, {static: true}) entitiesTable: EntitiesTableComponent; @@ -124,8 +123,7 @@ export class EventTableComponent implements OnInit, AfterViewInit, OnDestroy { private dialog: MatDialog, private overlay: Overlay, private viewContainerRef: ViewContainerRef, - private cd: ChangeDetectorRef, - private nodeScriptTestService: NodeScriptTestService) { + private cd: ChangeDetectorRef) { } ngOnInit() { @@ -144,7 +142,6 @@ export class EventTableComponent implements OnInit, AfterViewInit, OnDestroy { this.overlay, this.viewContainerRef, this.cd, - this.nodeScriptTestService, this.ruleNodeTestButtonLabel, this.debugEventSelected );