Browse Source

Removed 'OPCUA ASYNCIO' Connector Type

pull/11062/head
mpetrov 2 years ago
parent
commit
c095a3728a
  1. 3
      ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc-connector.component.html
  2. 2
      ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc-connector.component.ts
  3. 1
      ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc.component.ts
  4. 2
      ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-widget.models.ts

3
ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc-connector.component.html

@ -478,9 +478,6 @@
</button> </button>
</fieldset> </fieldset>
</ng-template> </ng-template>
<ng-template [ngSwitchCase]="ConnectorType.OPCUA_ASYNCIO">
<ng-container *ngTemplateOutlet="OPCUAForm"></ng-container>
</ng-template>
<ng-template [ngSwitchCase]="ConnectorType.OPCUA" #OPCUAForm> <ng-template [ngSwitchCase]="ConnectorType.OPCUA" #OPCUAForm>
<mat-form-field > <mat-form-field >
<mat-label>{{ 'gateway.rpc.method' | translate }}</mat-label> <mat-label>{{ 'gateway.rpc.method' | translate }}</mat-label>

2
ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc-connector.component.ts

@ -269,7 +269,6 @@ export class GatewayServiceRPCConnectorComponent implements OnInit, ControlValue
}) })
break; break;
case ConnectorType.OPCUA: case ConnectorType.OPCUA:
case ConnectorType.OPCUA_ASYNCIO:
formGroup = this.fb.group({ formGroup = this.fb.group({
method: [null, [Validators.required, Validators.pattern(noLeadTrailSpacesRegex)]], method: [null, [Validators.required, Validators.pattern(noLeadTrailSpacesRegex)]],
arguments: this.fb.array([]), arguments: this.fb.array([]),
@ -413,7 +412,6 @@ export class GatewayServiceRPCConnectorComponent implements OnInit, ControlValue
delete value.httpHeaders; delete value.httpHeaders;
break; break;
case ConnectorType.OPCUA: case ConnectorType.OPCUA:
case ConnectorType.OPCUA_ASYNCIO:
this.clearFromArrayByName("arguments"); this.clearFromArrayByName("arguments");
value.arguments.forEach(value => { value.arguments.forEach(value => {
this.addOCPUAArguments(value) this.addOCPUAArguments(value)

1
ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-service-rpc.component.ts

@ -150,7 +150,6 @@ export class GatewayServiceRPCComponent implements OnInit {
case ConnectorType.BACNET: case ConnectorType.BACNET:
case ConnectorType.CAN: case ConnectorType.CAN:
case ConnectorType.OPCUA: case ConnectorType.OPCUA:
case ConnectorType.OPCUA_ASYNCIO:
return params.method; return params.method;
case ConnectorType.BLE: case ConnectorType.BLE:
case ConnectorType.OCPP: case ConnectorType.OCPP:

2
ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-widget.models.ts

@ -125,7 +125,6 @@ export enum ConnectorType {
MODBUS = 'modbus', MODBUS = 'modbus',
GRPC = 'grpc', GRPC = 'grpc',
OPCUA = 'opcua', OPCUA = 'opcua',
OPCUA_ASYNCIO = 'opcua_asyncio',
BLE = 'ble', BLE = 'ble',
REQUEST = 'request', REQUEST = 'request',
CAN = 'can', CAN = 'can',
@ -145,7 +144,6 @@ export const GatewayConnectorDefaultTypesTranslatesMap = new Map<ConnectorType,
[ConnectorType.MODBUS, 'MODBUS'], [ConnectorType.MODBUS, 'MODBUS'],
[ConnectorType.GRPC, 'GRPC'], [ConnectorType.GRPC, 'GRPC'],
[ConnectorType.OPCUA, 'OPCUA'], [ConnectorType.OPCUA, 'OPCUA'],
[ConnectorType.OPCUA_ASYNCIO, 'OPCUA ASYNCIO'],
[ConnectorType.BLE, 'BLE'], [ConnectorType.BLE, 'BLE'],
[ConnectorType.REQUEST, 'REQUEST'], [ConnectorType.REQUEST, 'REQUEST'],
[ConnectorType.CAN, 'CAN'], [ConnectorType.CAN, 'CAN'],

Loading…
Cancel
Save