From a7e69bd7273609d54d18031bcb5b25524e42ad3e Mon Sep 17 00:00:00 2001 From: Darcy Ye Date: Wed, 28 Feb 2024 11:06:42 +0800 Subject: [PATCH] fix(connector): always show SMTP connector TLS configurations in the admin console (#5441) --- .changeset/wet-squids-move.md | 5 +++++ packages/connectors/connector-smtp/src/constant.ts | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 .changeset/wet-squids-move.md diff --git a/.changeset/wet-squids-move.md b/.changeset/wet-squids-move.md new file mode 100644 index 000000000..aaa526b04 --- /dev/null +++ b/.changeset/wet-squids-move.md @@ -0,0 +1,5 @@ +--- +"@logto/connector-smtp": patch +--- + +Always show TLS configurations in the admin console. diff --git a/packages/connectors/connector-smtp/src/constant.ts b/packages/connectors/connector-smtp/src/constant.ts index c6172fbdd..d2078b048 100644 --- a/packages/connectors/connector-smtp/src/constant.ts +++ b/packages/connectors/connector-smtp/src/constant.ts @@ -170,7 +170,6 @@ export const defaultMetadata: ConnectorMetadata = { key: 'secure', label: 'Secure', type: ConnectorConfigFormItemType.Switch, - required: true, defaultValue: false, }, { @@ -179,7 +178,6 @@ export const defaultMetadata: ConnectorMetadata = { type: ConnectorConfigFormItemType.Json, required: false, defaultValue: {}, - showConditions: [{ targetKey: 'secure', expectValue: true }], }, { key: 'servername', @@ -187,21 +185,18 @@ export const defaultMetadata: ConnectorMetadata = { type: ConnectorConfigFormItemType.Text, required: false, placeholder: '', - showConditions: [{ targetKey: 'secure', expectValue: true }], }, { key: 'ignoreTLS', label: 'Ignore TLS', type: ConnectorConfigFormItemType.Switch, required: false, - showConditions: [{ targetKey: 'secure', expectValue: true }], }, { key: 'requireTLS', label: 'Require TLS', type: ConnectorConfigFormItemType.Switch, required: false, - showConditions: [{ targetKey: 'secure', expectValue: true }], }, ], };