Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
popovers: Remove should_display_view_source from actions_popover_content.
Sahil Batra6d5118674d57
diff --git a/static/js/popovers.js b/static/js/popovers.jsindex c7eb76b6838..7caa793ad02 100644--- a/static/js/popovers.js+++ b/static/js/popovers.js@@ -521,8 +521,6 @@ export function toggle_actions_popover(element, id) {const should_display_uncollapse =!message.locally_echoed && !message.is_me_message && message.collapsed;- const should_display_view_source = editability !== message_edit.editability_types.FULL;-const should_display_quote_and_reply =message.content !== "<p>(deleted)</p>" && not_spectator;@@ -551,7 +549,6 @@ export function toggle_actions_popover(element, id) {should_display_delete_option,should_display_read_receipts_option,should_display_reminder_option: feature_flags.reminders_in_message_action_menu,- should_display_view_source,should_display_quote_and_reply,};diff --git a/static/templates/actions_popover_content.hbs b/static/templates/actions_popover_content.hbsindex 113f02a1825..847f0ac0118 100644--- a/static/templates/actions_popover_content.hbs+++ b/static/templates/actions_popover_content.hbs@@ -36,7 +36,7 @@</li>{{/if}}- {{#if should_display_view_source}}+ {{#if view_source_menu_item}}<li><a class="popover_view_source" data-message-id="{{message_id}}" tabindex="0"><i class="fa fa-file-code-o" aria-hidden="true"></i> {{view_source_menu_item}}