Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

modals: Switch mark_as_unread_from_here modal to compact mode.

Sayam Samal0c8df9d93cef
diff --git a/web/src/unread_ops.ts b/web/src/unread_ops.ts
index 2c0044dbff2..25d3bc9b229 100644
--- a/web/src/unread_ops.ts
+++ b/web/src/unread_ops.ts
@@ -470,6 +470,7 @@ export function mark_as_unread_from_here(message_id: number): void {
confirm_dialog.launch({
modal_title_html: $t_html({defaultMessage: "Mark messages as unread?"}),
modal_content_html: render_confirm_mark_as_unread_from_here(context),
+ is_compact: true,
on_click() {
if (prefer_local_ids) {
do_mark_unread(locally_available_matching_message_ids);
diff --git a/web/templates/confirm_dialog/confirm_mark_as_unread_from_here.hbs b/web/templates/confirm_dialog/confirm_mark_as_unread_from_here.hbs
index 44c16af3e62..6c3d0a22c31 100644
--- a/web/templates/confirm_dialog/confirm_mark_as_unread_from_here.hbs
+++ b/web/templates/confirm_dialog/confirm_mark_as_unread_from_here.hbs
@@ -1,7 +1,5 @@
-<p>
- {{#if show_message_count}}
- {{t "Are you sure you want to mark {count} messages as unread? Messages in multiple conversations may be affected."}}
- {{else}}
- {{t "Are you sure you want to mark messages as unread? Messages in multiple conversations may be affected."}}
- {{/if}}
-</p>
+{{#if show_message_count}}
+ {{t "Are you sure you want to mark {count} messages as unread? Messages in multiple conversations may be affected."}}
+{{else}}
+ {{t "Are you sure you want to mark messages as unread? Messages in multiple conversations may be affected."}}
+{{/if}}