Browse Source

Renamed ruleNodeTestButtonLabel to functionTestButtonLabel to be able to use for convertors debug

pull/8836/head
rusikv 3 years ago
parent
commit
a630392d66
  1. 16
      ui-ngx/src/app/modules/home/components/event/event-table.component.ts
  2. 2
      ui-ngx/src/app/modules/home/pages/rulechain/rulechain-page.component.html

16
ui-ngx/src/app/modules/home/components/event/event-table.component.ts

@ -88,21 +88,21 @@ export class EventTableComponent implements OnInit, AfterViewInit, OnDestroy {
} }
} }
private ruleNodeTestButtonLabelValue: string; private functionTestButtonLabelValue: string;
get ruleNodeTestButtonLabel(): string { get functionTestButtonLabel(): string {
return this.ruleNodeTestButtonLabelValue; return this.functionTestButtonLabelValue;
} }
@Input() @Input()
set ruleNodeTestButtonLabel(value: string) { set functionTestButtonLabel(value: string) {
if (isNotEmptyStr(value)) { if (isNotEmptyStr(value)) {
this.ruleNodeTestButtonLabelValue = value; this.functionTestButtonLabelValue = value;
} else { } else {
this.ruleNodeTestButtonLabelValue = ''; this.functionTestButtonLabelValue = '';
} }
if (this.eventTableConfig) { if (this.eventTableConfig) {
this.eventTableConfig.testButtonLabel = this.ruleNodeTestButtonLabel; this.eventTableConfig.testButtonLabel = this.functionTestButtonLabel;
this.eventTableConfig.updateCellAction(); this.eventTableConfig.updateCellAction();
} }
} }
@ -142,7 +142,7 @@ export class EventTableComponent implements OnInit, AfterViewInit, OnDestroy {
this.overlay, this.overlay,
this.viewContainerRef, this.viewContainerRef,
this.cd, this.cd,
this.ruleNodeTestButtonLabel, this.functionTestButtonLabel,
this.debugEventSelected this.debugEventSelected
); );
} }

2
ui-ngx/src/app/modules/home/pages/rulechain/rulechain-page.component.html

@ -121,7 +121,7 @@
[active]="eventsTab.isActive" [active]="eventsTab.isActive"
[tenantId]="ruleChain.tenantId.id" [tenantId]="ruleChain.tenantId.id"
[entityId]="editingRuleNode.ruleNodeId" [entityId]="editingRuleNode.ruleNodeId"
[ruleNodeTestButtonLabel]="ruleNodeTestButtonLabel" [functionTestButtonLabel]="ruleNodeTestButtonLabel"
(debugEventSelected)="onDebugEventSelected($event)"> (debugEventSelected)="onDebugEventSelected($event)">
</tb-event-table> </tb-event-table>
</mat-tab> </mat-tab>

Loading…
Cancel
Save