Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Extract Onboarding section in realm settings.
Tim Abbott2eb3e18b63de
diff --git a/help/configure-a-custom-welcome-message.md b/help/configure-a-custom-welcome-message.mdindex 909ccb6ccba..bce1355e8da 100644--- a/help/configure-a-custom-welcome-message.md+++ b/help/configure-a-custom-welcome-message.md@@ -24,8 +24,8 @@ administrators.{settings_tab|organization-settings}-1. Under **Automated messages and emails**, enable **Add a custom Welcome Bot- message for new users**.+1. Under **Onboarding**, enable **Add a custom Welcome Bot message for+ new users**.1. Under **Message text**, enter a custom welcome message using Zulip's standard[Markdown formatting](/help/format-your-message-using-markdown).diff --git a/help/disable-welcome-emails.md b/help/disable-welcome-emails.mdindex 77117f9f047..57fa4c4761b 100644--- a/help/disable-welcome-emails.md+++ b/help/disable-welcome-emails.md@@ -15,7 +15,7 @@ email notifying them about their new Zulip account and how to log in.{settings_tab|organization-settings}-1. Under **Automated messages and emails**, toggle+1. Under **Onboarding**, toggle**Send emails introducing Zulip to new users**.{end_tabs}diff --git a/web/src/settings_org.ts b/web/src/settings_org.tsindex 4e1aa8238bf..2d4c5fc3459 100644--- a/web/src/settings_org.ts+++ b/web/src/settings_org.ts@@ -364,7 +364,7 @@ function disable_create_user_groups_if_on_limited_plan(): void {}export function maybe_store_unsaved_welcome_message_custom_text(): void {- if ($("#org-notifications").find(".save-button[data-status='unsaved']").length === 0) {+ if ($("#org-onboarding").find(".save-button[data-status='unsaved']").length === 0) {return;}diff --git a/web/templates/settings/organization_settings_admin.hbs b/web/templates/settings/organization_settings_admin.hbsindex c50a884b948..c946e0b38ea 100644--- a/web/templates/settings/organization_settings_admin.hbs+++ b/web/templates/settings/organization_settings_admin.hbs@@ -34,11 +34,6 @@value_type="number"custom_classes="decorated-stream-name-dropdown-widget"}}- {{> settings_checkbox- setting_name="realm_send_welcome_emails"- prefix="id_"- is_checked=realm_send_welcome_emails- label=admin_settings_label.realm_send_welcome_emails}}{{#if settings_send_digest_emails }}{{> settings_checkboxsetting_name="realm_digest_emails_enabled"@@ -62,6 +57,15 @@</select></div>+ </div>+ </div>++ <div id="org-onboarding" class="settings-subsection-parent">+ <div class="subsection-header">+ <h3>{{t "Onboarding" }}</h3>+ {{> settings_save_discard_widget section_name="onboarding" }}+ </div>+ <div class="inline-block organization-settings-parent">{{> settings_checkboxsetting_name="realm_enable_welcome_message_custom_text"prefix="id_"@@ -80,6 +84,11 @@</div></div>+ {{> settings_checkbox+ setting_name="realm_send_welcome_emails"+ prefix="id_"+ is_checked=realm_send_welcome_emails+ label=admin_settings_label.realm_send_welcome_emails}}</div></div>