Browse Source

adjustments

pull/14513/head
Maksym Tsymbarov 9 months ago
parent
commit
0d66c6b33e
  1. 4
      ui-ngx/src/app/modules/home/components/event/events-dialog.component.html
  2. 6
      ui-ngx/src/app/modules/home/components/event/events-dialog.component.ts
  3. 1
      ui-ngx/src/app/modules/home/pages/rulechain/rulechain-page.component.ts

4
ui-ngx/src/app/modules/home/components/event/events-dialog.component.html

@ -27,8 +27,8 @@
</mat-toolbar>
<div mat-dialog-content class="tb-form-panel stroked debug-dialog-content xs:flex-1">
<tb-event-table
[debugEventTypes]="[debugEventTypes.DEBUG_RULE_NODE]"
[defaultEventType]="debugEventTypes.DEBUG_RULE_NODE"
[debugEventTypes]="[data.debugEventType]"
[defaultEventType]="data.debugEventType"
[active]="true"
[tenantId]="data.tenantId.id"
[entityId]="data.entityId"

6
ui-ngx/src/app/modules/home/components/event/events-dialog.component.ts

@ -21,7 +21,7 @@ import { EventTableComponent } from '@home/components/event/event-table.componen
import { Store } from '@ngrx/store';
import { AppState } from '@core/core.state';
import { Router } from '@angular/router';
import { DebugEventType, EventType } from '@shared/models/event.models';
import { DebugEventType } from '@shared/models/event.models';
import { TenantId } from '@shared/models/id/tenant-id';
import { EntityId } from '@shared/models/id/entity-id';
@ -29,6 +29,7 @@ export interface RuleNodeDebugDialogData {
title: string;
tenantId: TenantId;
entityId: EntityId;
debugEventType: DebugEventType;
functionTestButtonLabel: string;
onDebugEventSelected: ()=> void;
}
@ -42,9 +43,6 @@ export class EventsDialogComponent extends DialogComponent<EventsDialogComponent
@ViewChild(EventTableComponent, {static: true}) eventsTable: EventTableComponent;
readonly debugEventTypes = DebugEventType;
readonly EventType = EventType;
constructor(protected store: Store<AppState>,
protected router: Router,
@Inject(MAT_DIALOG_DATA) public data: RuleNodeDebugDialogData,

1
ui-ngx/src/app/modules/home/pages/rulechain/rulechain-page.component.ts

@ -1679,6 +1679,7 @@ export class RuleChainPageComponent extends PageComponent
panelClass: ['tb-dialog', 'tb-fullscreen-dialog'],
data: {
title: 'rulenode.events',
debugEventType: DebugEventType.DEBUG_RULE_CHAIN,
tenantId: this.ruleChain.tenantId,
entityId: this.editingRuleNode.ruleNodeId,
functionTestButtonLabel: this.ruleNodeTestButtonLabel,

Loading…
Cancel
Save