diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.ts index 63ba9e2529..07db601b1f 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-connectors.component.ts @@ -452,38 +452,6 @@ export class GatewayConnectorComponent extends PageComponent implements AfterVie return (connector && this.activeConnectors.includes(connectorName)) ? (connector.data[0][1] || 0) : 'Inactive'; } - // addConnector($event: Event) { - // if ($event) { - // $event.stopPropagation(); - // } - // this.confirmConnectorChange().subscribe((changeConfirmed) => { - // if (changeConfirmed) { - // return this.dialog.open(AddConnectorDialogComponent, { - // disableClose: true, - // panelClass: ['tb-dialog', 'tb-fullscreen-dialog'], - // data: { - // dataSourceData: this.dataSource.data - // } - // }).afterClosed().subscribe((value) => { - // if (value && changeConfirmed) { - // this.initialConnector = null; - // if (this.connectorForm.disabled) { - // this.connectorForm.enable(); - // } - // if (!value.configurationJson) { - // value.configurationJson = {}; - // } - // value.basicConfig = value.configurationJson; - // this.updateConnector(value); - // this.generate('basicConfig.broker.clientId'); - // setTimeout(() => this.saveConnector()); - // } - // }); - // } - // }); - // } - addConnector(event?: Event): void { event?.stopPropagation();