Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
modals: Switch confirm_stream_privacy_change modal to compact mode.
Sayam Samal2ff196e55aa4
diff --git a/web/src/stream_edit.ts b/web/src/stream_edit.tsindex 31bc7b59897..43762add784 100644--- a/web/src/stream_edit.ts+++ b/web/src/stream_edit.ts@@ -9,7 +9,6 @@ import render_settings_reactivation_stream_modal from "../templates/confirm_dialimport render_inline_decorated_channel_name from "../templates/inline_decorated_channel_name.hbs";import render_change_stream_info_modal from "../templates/stream_settings/change_stream_info_modal.hbs";import render_channel_name_conflict_error from "../templates/stream_settings/channel_name_conflict_error.hbs";-import render_confirm_stream_privacy_change_modal from "../templates/stream_settings/confirm_stream_privacy_change_modal.hbs";import render_copy_email_address_modal from "../templates/stream_settings/copy_email_address_modal.hbs";import render_stream_description from "../templates/stream_settings/stream_description.hbs";import render_stream_settings from "../templates/stream_settings/stream_settings.hbs";@@ -1043,15 +1042,17 @@ export function initialize(): void {settings_org.save_organization_settings(data, $save_button, url);return;}- dialog_widget.launch({+ confirm_dialog.launch({modal_title_html: $t_html({defaultMessage: "Confirm changing access permissions"}),- modal_content_html: render_confirm_stream_privacy_change_modal(),+ modal_content_html: $t_html({+ defaultMessage:+ "This change will make this channel's entire message history accessible according to the new configuration.",+ }),+ is_compact: true,id: "confirm_stream_privacy_change",- modal_submit_button_text: $t({defaultMessage: "Confirm"}),on_click() {settings_org.save_organization_settings(data, $save_button, url);},- close_on_submit: true,});},);diff --git a/web/templates/stream_settings/confirm_stream_privacy_change_modal.hbs b/web/templates/stream_settings/confirm_stream_privacy_change_modal.hbsdeleted file mode 100644index 216ce2a2e9e..00000000000--- a/web/templates/stream_settings/confirm_stream_privacy_change_modal.hbs+++ /dev/null@@ -1,5 +0,0 @@-<div class="confirm-stream-privacy-modal">- <p class="confirm-stream-privacy-info">- {{t "This change will make this channel's entire message history accessible according to the new configuration."}}- </p>-</div>