This commit is contained in:
Maksym Dudnik 2023-05-25 15:27:36 +03:00
parent 1d8196f9e6
commit ad94a35348

View File

@ -178,6 +178,7 @@ export class GatewayConnectorComponent extends PageComponent implements AfterVie
saveConnector(): void {
const value = this.connectorForm.value;
value.configuration = this.camelize(value.name) + ".json";
if (value.type !== 'grpc') {
delete value.key;
}
@ -333,6 +334,10 @@ export class GatewayConnectorComponent extends PageComponent implements AfterVie
})
}
camelize(str): string {
return str.toLowerCase().replace(/\s+/g, '_');
}
connectorLogs(attribute: AttributeData, $event: Event): void {
if ($event) {
$event.stopPropagation();