zulip/web/templates
yogesh sirsat 953f026487 compose: Disable unneeded control buttons in preview mode.
Buttons which change the content in the compose textarea were so far
enabled even in preview mode, and would work, but those changes would
not be reflected in the visible preview. This is extremely confusing,
and can lead to the possibility of a user accidentally changing the
content of the compose textarea while previewing, and sending that.

Now we disable those buttons in preview mode, both when composing a new
message and when editing an existing one. We still show the tooltips,
but grey them out and make them unclickable.

Fixes: #20962
2023-09-13 15:09:16 -07:00
..
compose_banner upload_banner: Add a cancel button. 2023-07-06 16:11:09 -07:00
confirm_dialog invites: Make it possible for non-admins to revoke multiuse invites. 2023-09-07 14:21:01 -07:00
inbox_view inbox: Save collapsed state of streams in localstorage. 2023-09-12 09:20:33 -07:00
navbar_alerts demo-organizations: Rename shortend versions of 'demo organization'. 2023-09-08 15:17:23 -07:00
settings user_profile: Disable deactivate user button if the admin is only user. 2023-09-11 10:39:00 -07:00
stream_settings stream settings: Warn users before locking them out of a stream. 2023-08-11 16:46:41 -07:00
unread_banner settings: Change "Display settings" to "Preferences". 2023-07-12 07:09:03 -07:00
user_group_settings templates: Add filter_text_input class to inputs used for filtering. 2023-07-07 10:10:28 -07:00
widgets
about_zulip.hbs templates: Replace unnecessary {{#tr}} blocks with {{t}} helper. 2023-03-16 11:26:45 -07:00
actions_popover_content.hbs message_feed: Remove the view edit history from the three-dot menu. 2023-08-24 16:28:06 -07:00
all_messages_sidebar_actions.hbs templates: Replace unnecessary {{#tr}} blocks with {{t}} helper. 2023-03-16 11:26:45 -07:00
announce_stream_docs.hbs
blueslip_stacktrace.hbs blueslip: Show more-info context in alert popup, if we have it. 2023-05-09 13:16:28 -07:00
bookend.hbs i18n: Fix encoding of stream bookends. 2023-04-24 12:19:06 -07:00
buddy_list_tooltip_content.hbs
change_email_modal.hbs modals: Add modal_text_input class to text inputs. 2023-03-27 22:34:30 -07:00
change_visibility_policy_button_tooltip.hbs message_header: Add support to follow topic from the message header bar. 2023-08-17 13:30:24 -07:00
change_visibility_policy_popover.hbs message_header: Add support to follow topic from the message header bar. 2023-08-17 13:30:24 -07:00
compose.hbs dropdown_widget: Refactor to use Class. 2023-07-27 14:10:08 -07:00
compose_control_buttons.hbs compose: Disable unneeded control buttons in preview mode. 2023-09-13 15:09:16 -07:00
compose_control_buttons_in_popover.hbs compose: Disable unneeded control buttons in preview mode. 2023-09-13 15:09:16 -07:00
compose_control_buttons_popover.hbs compose: Disable unneeded control buttons in preview mode. 2023-09-13 15:09:16 -07:00
compose_select_enter_behaviour_popover.hbs
copy_code_button.hbs templates: Remove pull-left class and its bootstrap CSS. 2023-06-23 11:53:38 -07:00
copy_invite_link.hbs bootstrap: Remove bootstrap CSS for pull-right class. 2023-06-23 11:53:38 -07:00
copy_message_button.hbs copy_message_button: Use `div` HTML tag instead of `button`. 2023-03-27 16:11:19 -07:00
copy_to_clipboard_svg.hbs
default_language_modal.hbs templates: Replace unnecessary {{#tr}} blocks with {{t}} helper. 2023-03-16 11:26:45 -07:00
demo_organization_add_email_modal.hbs demo-orgs: Add email and password process for demo organization owners. 2023-08-31 15:02:16 -07:00
dialog_change_password.hbs modal: Remove modal_text_input class from password and url type inputs. 2023-06-23 11:53:38 -07:00
dialog_widget.hbs dialog_widget: Rename "dialog_cancel_button" to "dialog_exit_button". 2023-07-25 10:25:12 -07:00
draft.hbs drafts: Increase tippy delay for "Delete Drafts" icon. 2023-08-11 15:54:17 -07:00
draft_table_body.hbs drafts: Rename class name to provide more context. 2023-08-11 15:54:17 -07:00
drafts_sidebar_action.hbs templates: Replace unnecessary {{#tr}} blocks with {{t}} helper. 2023-03-16 11:26:45 -07:00
dropdown_disabled_state.hbs dropdown_widget: Refactor to use Class. 2023-07-27 14:10:08 -07:00
dropdown_list.hbs dropdown_widget: Refactor to use Class. 2023-07-27 14:10:08 -07:00
dropdown_list_container.hbs dropdown_widget: Show empty list text without initiating search. 2023-09-10 11:20:15 -07:00
dropdown_widget.hbs dropdown_widget: Refactor to use Class. 2023-07-27 14:10:08 -07:00
dropdown_widget_with_label.hbs dropdown_widget: Refactor to use Class. 2023-07-27 14:10:08 -07:00
dropdown_widget_with_stream_colorblock.hbs dropdown_widget: Refactor to use Class. 2023-07-27 14:10:08 -07:00
edit_content_button.hbs icons: Display alternate move and source icons. 2023-08-21 17:13:43 -07:00
edited_notice.hbs message_feed: Improve edited/moved tooltip. 2023-07-11 17:33:06 -07:00
embedded_bot_config_item.hbs modals: Add modal_text_input class to text inputs. 2023-03-27 22:34:30 -07:00
emoji_popover.hbs emoji: Rename `emoji-info-popover` to `emoji-picker-popover`. 2023-09-07 14:44:18 -07:00
emoji_popover_content.hbs emoji_picker: Improve rendering time of emoji picker by ~30%. 2023-09-13 12:39:13 -07:00
emoji_popover_emoji.hbs css: Hyphenate .status-emoji selector. 2023-03-27 17:31:31 -07:00
emoji_popover_emoji_map.hbs emoji_picker: Improve rendering time of emoji picker by ~30%. 2023-09-13 12:39:13 -07:00
emoji_popover_search_results.hbs
emoji_showcase.hbs
empty_feed_notice.hbs templates: Remove references to undefined fields. 2023-03-22 17:10:28 -07:00
favicon.svg.hbs
feedback_container.hbs
filter_topics.hbs templates: Add filter_text_input class to inputs used for filtering. 2023-07-07 10:10:28 -07:00
gear_menu.hbs invites: Frontend changes for adding the new realm setting. 2023-09-07 14:21:01 -07:00
giphy_picker.hbs giphy: Migrate Giphy popover to Tippy. 2023-07-05 14:43:19 -07:00
help_link_widget.hbs
hotspot_icon.hbs
hotspot_overlay.hbs
inline_decorated_stream_name.hbs templates: Add missing "aria-hidden" attribute. 2023-04-26 10:55:58 -07:00
input_pill.hbs
invitation_failed_error.hbs docs: Change `Create an invitation link` heading. 2023-09-07 14:21:01 -07:00
invite_user_modal.hbs demo-orgs: Add section on configuring email address to help article. 2023-09-08 15:17:23 -07:00
keyboard_shortcuts.hbs help: Update message edit history documentation. 2023-08-24 16:28:06 -07:00
left_sidebar.hbs inbox: Add new narrow. 2023-09-12 09:20:33 -07:00
left_sidebar_stream_setting_popover.hbs
lightbox_overlay.hbs
loader.hbs
login_to_access.hbs templates: Replace unnecessary {{#tr}} blocks with {{t}} helper. 2023-03-16 11:26:45 -07:00
login_to_view_image_button.hbs
markdown_help.hbs templates: Remove table-condensed class for <table> elements. 2023-08-21 15:00:39 -07:00
markdown_time_tooltip.hbs
markdown_timestamp.hbs
message_avatar.hbs message_avatar: Preserve clickable area from image to user name. 2023-07-13 09:02:00 -07:00
message_body.hbs alerts: Remove unused .alert-msg elements. 2023-08-15 12:20:35 -07:00
message_controls.hbs emoji: Migrate popover from Bootstrap to Tippy. 2023-09-07 14:44:18 -07:00
message_edit_form.hbs message_edit: Disable save btn after edit time limit 2023-05-16 15:59:29 -07:00
message_edit_history.hbs
message_edit_notice_tooltip.hbs message_feed: Improve edited/moved tooltip. 2023-07-11 17:33:06 -07:00
message_feed_bottom_whitespace.hbs
message_feed_errors.hbs
message_group.hbs
message_hidden_dialog.hbs templates: Replace unnecessary {{#tr}} blocks with {{t}} helper. 2023-03-16 11:26:45 -07:00
message_history_modal.hbs
message_inline_image_tooltip.hbs
message_reaction.hbs templates: Fix &nbsp; syntax. 2023-03-15 16:34:32 -07:00
message_reactions.hbs message_reactions: Clean up the aria attributes for reaction_button. 2023-09-07 14:44:18 -07:00
message_view_header.hbs message_view_header: Fix bad rendering of stream links in description. 2023-07-10 13:47:22 -07:00
mobile_message_buttons_popover_content.hbs private-messages: Update frontend strings to use "direct message" or "DM". 2023-02-24 11:47:26 -08:00
more_pms.hbs
more_topics.hbs topic_list: Show muted unread counts in muted streams. 2023-05-01 21:13:53 -07:00
more_topics_spinner.hbs
move_topic_to_stream.hbs dropdown_widget: Refactor to use Class. 2023-07-27 14:10:08 -07:00
muted_user_ui_row.hbs
narrow_to_compose_recipients_tooltip.hbs
narrow_tooltip.hbs CVE-2023-33186: Fix topic tooltip cross-site scripting vulnerability. 2023-05-29 16:35:49 -07:00
navbar.hbs search: Rename search_arrows to searchbox_container. 2023-07-23 15:27:53 -07:00
navbar_icon_and_title.hbs stream_privacy: Use new lock and hashtag icons. 2023-04-10 23:41:30 -07:00
no_arrow_popover.hbs
playground_links_popover_content.hbs templates: Replace unnecessary {{#tr}} blocks with {{t}} helper. 2023-03-16 11:26:45 -07:00
pm_list_item.hbs left_sidebar: Replace the presence dot with bot icon for bots. 2023-04-28 19:14:00 -07:00
presence_row.hbs
presence_rows.hbs
read_receipts.hbs
read_receipts_modal.hbs
recent_view_filters.hbs recent: Rename recent_topics templates. 2023-09-08 07:36:33 -07:00
recent_view_row.hbs recent_view: Add table header to sort by unread count. 2023-09-13 14:58:13 -07:00
recent_view_table.hbs recent_view: Add table header to sort by unread count. 2023-09-13 14:58:13 -07:00
recipient_row.hbs message_header: Add support to follow topic from the message header bar. 2023-08-17 13:30:24 -07:00
resolve_topic_time_limit_error_modal.hbs message_edit: Show modal if user cannot resolve topics. 2023-04-17 11:25:28 -07:00
right_sidebar.hbs invites: Live update option to create new invitations. 2023-09-07 14:21:01 -07:00
scheduled_message.hbs tooltips: Use tippy tooltips for drafts and schedule message overlays. 2023-06-13 16:49:54 -07:00
scheduled_message_stream_pm_common.hbs scheduled_message: Change tooltip of failure icon. 2023-05-15 14:43:04 -07:00
scheduled_messages_overlay.hbs scheduled_mesages: Use events to update scheduled message data. 2023-05-01 22:45:03 -07:00
search_description.hbs search: Create a template for search descriptions. 2023-07-17 17:19:08 -07:00
search_list_item.hbs
search_operators.hbs templates: Remove table-condensed class for <table> elements. 2023-08-21 15:00:39 -07:00
send_later_modal.hbs send_later: Extract send later options to separate template. 2023-05-10 16:14:10 -07:00
send_later_modal_options.hbs send_late: Change the class `send_later_options` to an id. 2023-05-15 14:52:06 -07:00
send_later_popover.hbs popover_menus: Show last selected time in send later popover. 2023-05-01 22:45:03 -07:00
set_status_overlay.hbs templates: Add modal_text_input class where it is missing. 2023-07-07 10:10:28 -07:00
settings_overlay.hbs settings: Remove lock icon when the user can add bots. 2023-08-24 16:57:17 -07:00
settings_tab.hbs user_topics: Rename 'muted_topics_settings.hbs'. 2023-04-25 12:46:05 -07:00
single_message.hbs message_grid: Share same message grid with me-messages. 2023-07-13 09:02:00 -07:00
starred_messages_sidebar_actions.hbs templates: Replace unnecessary {{#tr}} blocks with {{t}} helper. 2023-03-16 11:26:45 -07:00
status_emoji.hbs css: Hyphenate .status-emoji selector. 2023-03-27 17:31:31 -07:00
status_emoji_selector.hbs css: Hyphenate .smiley-icon selector. 2023-03-27 17:31:31 -07:00
stream_privacy.hbs stream_privacy: Use new lock and hashtag icons. 2023-04-10 23:41:30 -07:00
stream_sidebar_actions.hbs recipient_row: Set color of privacy icon as a shade of stream color. 2023-04-10 23:41:30 -07:00
stream_sidebar_row.hbs recipient_row: Set color of privacy icon as a shade of stream color. 2023-04-10 23:41:30 -07:00
stream_topic_widget.hbs
streams_subheader.hbs
subscribe_to_more_streams.hbs i18n: Simplify formatting in subscribe_to_more_streams template. 2023-09-08 09:09:46 -07:00
tooltip_templates.hbs gear_menu: Rename tooltip to reflect name change from 'Menu' to 'Main menu'. 2023-06-23 14:42:34 -07:00
topic_edit_form.hbs topic_edit: Rename `inline_topic_edit` to `move_messages_edit_topic`. 2023-05-09 13:51:07 -07:00
topic_list_item.hbs topic_list: Add an icon and update the color for "Followed" topics. 2023-09-11 17:55:35 -07:00
topic_muted.hbs
topic_sidebar_actions.hbs topic_popover: Add a 'Default' option and Show 'Unmute' conditionally. 2023-08-15 10:02:03 -07:00
topic_typeahead_hint.hbs compose_typeahead: Add hint text to topic typeahead dropdown. 2023-03-20 16:28:28 -07:00
typeahead_list_item.hbs typeahead: Show stream privacy icons in typeahead options. 2023-04-17 17:19:11 -07:00
typing_notification.hbs templates: Replace unnecessary {{#tr}} blocks with {{t}} helper. 2023-03-16 11:26:45 -07:00
typing_notifications.hbs
user_custom_profile_fields.hbs
user_group_info_popover.hbs
user_group_info_popover_content.hbs
user_group_list_item.hbs
user_info_popover_content.hbs web: Use `uri` instead of `url`. 2023-04-10 10:26:48 -07:00
user_info_popover_manage_menu.hbs templates: Replace unnecessary {{#tr}} blocks with {{t}} helper. 2023-03-16 11:26:45 -07:00
user_info_popover_title.hbs
user_profile_modal.hbs user_profile: Add tippy tooltips to edit pencil button. 2023-09-11 10:39:00 -07:00
user_profile_subscribe_widget.hbs user_profile: Add a reset subscribe widget function. 2023-09-10 11:20:15 -07:00
user_stream_list_item.hbs recipient_row: Set color of privacy icon as a shade of stream color. 2023-04-10 23:41:30 -07:00
user_topic_ui_row.hbs settings: Update SETTINGS/TOPICS panel to include followed topics. 2023-07-17 17:39:17 -07:00
user_with_status_icon.hbs
view_code_in_playground.hbs