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

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

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

Loading…
Cancel
Save