From 84e05249505c3d2f7eb7a4917f6bca503df81017 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 24 Oct 2024 13:40:09 +0200 Subject: [PATCH] fix: initialize empty smtp settings correctly --- .../lib/components/InstanceSettings.svelte | 73 +++++++++++++------ 1 file changed, 51 insertions(+), 22 deletions(-) diff --git a/frontend/src/lib/components/InstanceSettings.svelte b/frontend/src/lib/components/InstanceSettings.svelte index ac0aabd161..5ff2262058 100644 --- a/frontend/src/lib/components/InstanceSettings.svelte +++ b/frontend/src/lib/components/InstanceSettings.svelte @@ -102,8 +102,8 @@ if (values['base_url'] == undefined) { values['base_url'] = 'http://localhost' } - if (values['smtp_connect'] == undefined) { - values['smtp_connect'] = {} + if (values['smtp_settings'] == undefined) { + values['smtp_settings'] = {} } loading = false @@ -274,22 +274,34 @@ {#if category == 'SMTP'}
Setting SMTP unlocks sending emails upon adding new users to the workspace or the instance or sending critical alerts. - Learn more
Setting SMTP unlocks sending emails upon adding new users to the workspace or the + instance or sending critical alerts. + Learn more {:else if category == 'Registries'}
- Add private registries for Pip, Bun and npm. Learn more + Add private registries for Pip, Bun and npm. Learn more
{:else if category == 'Slack'}
- Connecting your instance to a Slack workspace enables critical alerts to be sent to a Slack channel. - Learn more + Connecting your instance to a Slack workspace enables critical alerts to be sent to a + Slack channel. + Learn more
{:else if category == 'SCIM/SAML'}
- Setting up SAML and SCIM allows you to authenticate users using your identity provider. - Learn more + Setting up SAML and SCIM allows you to authenticate users using your identity + provider. + Learn more
{:else if category == 'Debug'}
@@ -310,9 +322,11 @@
{#if $enterpriseLicense} -
- On Enterprise Edition, you must send data to check that usage is in line with the terms of the subscription. You can either enable telemetry or regularly send usage data by clicking the button below. -
+
+ On Enterprise Edition, you must send data to check that usage is in line with the + terms of the subscription. You can either enable telemetry or regularly send usage + data by clicking the button below. +