Browse Source

refactoring

pull/13042/head
mpetrov 2 years ago
parent
commit
6888f9ed5b
  1. 2
      ui-ngx/src/app/modules/home/components/calculated-fields/components/arguments-table/calculated-field-arguments-table.component.ts
  2. 2
      ui-ngx/src/app/modules/home/components/calculated-fields/components/panel/calculated-field-argument-panel.component.ts
  3. 4
      ui-ngx/src/assets/locale/locale.constant-en_US.json

2
ui-ngx/src/app/modules/home/components/calculated-fields/components/arguments-table/calculated-field-arguments-table.component.ts

@ -180,7 +180,7 @@ export class CalculatedFieldArgumentsTableComponent implements ControlValueAcces
ctx, ctx,
{}, {},
{}, {}, true); {}, {}, true);
this.popoverComponent.tbComponentRef.instance.argumentsDataApplied.subscribe((value ) => { this.popoverComponent.tbComponentRef.instance.argumentsDataApplied.subscribe(value=> {
this.popoverComponent.hide(); this.popoverComponent.hide();
if (isExists) { if (isExists) {
this.argumentsFormArray.at(index).setValue(value); this.argumentsFormArray.at(index).setValue(value);

2
ui-ngx/src/app/modules/home/components/calculated-fields/components/panel/calculated-field-argument-panel.component.ts

@ -140,7 +140,7 @@ export class CalculatedFieldArgumentPanelComponent implements OnInit, AfterViewI
} }
ngAfterViewInit(): void { ngAfterViewInit(): void {
if (this.argument.refEntityId.id === NULL_UUID) { if (this.argument.refEntityId?.id === NULL_UUID) {
this.entityAutocomplete.selectEntityFormGroup.get('entity').markAsTouched(); this.entityAutocomplete.selectEntityFormGroup.get('entity').markAsTouched();
} }
} }

4
ui-ngx/src/assets/locale/locale.constant-en_US.json

@ -1000,8 +1000,8 @@
"calculated-field": "calculated field", "calculated-field": "calculated field",
"hint": { "hint": {
"main-limited": "No more than {{msg}} {{entity}} debug messages per {{time}} will be recorded.", "main-limited": "No more than {{msg}} {{entity}} debug messages per {{time}} will be recorded.",
"on-failure": "Log all debug messages.", "on-failure": "Log error messages only.",
"all-messages": "Log error messages only. " "all-messages": "Log all debug messages."
} }
}, },
"calculated-fields": { "calculated-fields": {

Loading…
Cancel
Save