settings: Add a new "Notifications security" section in org settings.

This commit adds a new section named "Notifications security"
below "Automated messages and emails" in Organization settings.

The "Allow message content in message notification emails"
setting is moved from "Automated messages and emails" section
to this new section.

This serves as a prep work as we plan to add a new setting
"Require end-to-end encryption for push notification content"
in this section.

Fixes part of #35370.
This commit is contained in:
Prakhar Pratyush
2025-07-24 17:20:41 +05:30
committed by Tim Abbott
parent e29be679a8
commit d46b1a0ac9
2 changed files with 15 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ being sent through the email system.
{settings_tab|organization-settings}
1. Under **Automated messages and emails**, toggle
1. Under **Notifications security**, toggle
**Allow message content in message notification emails**.
{end_tabs}

View File

@@ -34,12 +34,6 @@
value_type="number"
custom_classes="decorated-stream-name-dropdown-widget"}}
{{> settings_checkbox
setting_name="realm_message_content_allowed_in_email_notifications"
prefix="id_"
is_checked=realm_message_content_allowed_in_email_notifications
label=admin_settings_label.realm_message_content_allowed_in_email_notifications}}
{{> settings_checkbox
setting_name="realm_send_welcome_emails"
prefix="id_"
@@ -70,6 +64,20 @@
</div>
</div>
<div class="settings-subsection-parent">
<div class="subsection-header">
<h3>{{t "Notifications security" }}</h3>
{{> settings_save_discard_widget section_name="notifications-security" }}
</div>
<div class="inline-block organization-settings-parent">
{{> settings_checkbox
setting_name="realm_message_content_allowed_in_email_notifications"
prefix="id_"
is_checked=realm_message_content_allowed_in_email_notifications
label=admin_settings_label.realm_message_content_allowed_in_email_notifications}}
</div>
</div>
<div id="org-compose-settings" class="settings-subsection-parent">
<div class="subsection-header">
<h3>{{t "Compose settings"}}</h3>