Browse Source

UI: Fixed set disabled state for rule node configuration

pull/9164/head
Artem Dzhereleiko 3 years ago
parent
commit
bdc7525ac4
  1. 1
      ui-ngx/src/app/modules/home/pages/rulechain/rule-node-config.component.ts
  2. 1
      ui-ngx/src/app/shared/models/rule-node.models.ts

1
ui-ngx/src/app/modules/home/pages/rulechain/rule-node-config.component.ts

@ -225,7 +225,6 @@ export class RuleNodeConfigComponent implements ControlValueAccessor, OnInit, On
this.definedConfigComponent.ruleChainId = this.ruleChainId;
this.definedConfigComponent.ruleChainType = this.ruleChainType;
this.definedConfigComponent.configuration = this.configuration;
this.definedConfigComponent.disabled = this.disabled;
this.changeSubscription = this.definedConfigComponent.configurationChanged.subscribe((configuration) => {
this.updateModel(configuration);
});

1
ui-ngx/src/app/shared/models/rule-node.models.ts

@ -107,6 +107,7 @@ export abstract class RuleNodeConfigurationComponent extends PageComponent imple
this.configForm().disable({emitEvent: false});
} else {
this.configForm().enable({emitEvent: false});
this.updateValidators(false);
}
};

Loading…
Cancel
Save