mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
settings: Extract Onboarding section in realm settings.
The section had gotten too tall, at least when the welcome bot message was enabled.
This commit is contained in:
@@ -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).
|
||||
|
@@ -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}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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_checkbox
|
||||
setting_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_checkbox
|
||||
setting_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>
|
||||
|
||||
|
Reference in New Issue
Block a user