Browse Source

UI: gateway dashboard bug-fix for mapping form validation

pull/10482/head
Dmitriymush 2 years ago
parent
commit
10474f3571
  1. 3
      ui-ngx/src/app/modules/home/components/widget/lib/gateway/dialog/mapping-dialog.component.ts

3
ui-ngx/src/app/modules/home/components/widget/lib/gateway/dialog/mapping-dialog.component.ts

@ -228,10 +228,9 @@ export class MappingDialogComponent extends DialogComponent<MappingDialogCompone
requestValueGroup.get('attributeRequests').disable({emitEvent: false});
requestValueGroup.get('attributeUpdates').disable({emitEvent: false});
requestValueGroup.get('serverSideRpc').disable({emitEvent: false});
requestValueGroup.get(value).enable({emitEvent: false});
requestValueGroup.get(value).enable();
});
this.mappingForm.get('requestValue.serverSideRpc.type').valueChanges.pipe(
startWith(this.mappingForm.get('requestValue.serverSideRpc.type').value),
takeUntil(this.destroy$)
).subscribe((value) => {
const requestValueGroup = this.mappingForm.get('requestValue.serverSideRpc');

Loading…
Cancel
Save