Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
send_later: Cancel scheduling from popover.
Karl Stolley865cba834bc0
diff --git a/web/src/popover_menus.js b/web/src/popover_menus.jsindex 364aac18e6a..133ba80dd03 100644--- a/web/src/popover_menus.js+++ b/web/src/popover_menus.js@@ -930,16 +930,16 @@ export function initialize() {e.stopPropagation();},);-- $send_later_modal.one("click", "#clear_compose_schedule_state", (e) => {- overlays.close_active_modal();- compose.reset_compose_scheduling_state(false);- e.preventDefault();- e.stopPropagation();- });},});});+ $popper.one("click", "#clear_compose_schedule_state", (e) => {+ compose.reset_compose_scheduling_state(false);+ // Close the popper instance when clearing scheduling:+ instance.hide();+ e.preventDefault();+ e.stopPropagation();+ });},onHidden(instance) {instance.destroy();diff --git a/web/templates/send_later_modal.hbs b/web/templates/send_later_modal.hbsindex a3002d0785d..a0421b455a9 100644--- a/web/templates/send_later_modal.hbs+++ b/web/templates/send_later_modal.hbs@@ -14,11 +14,6 @@</div><div class="send_later_options"><ul class="nav nav-list">- {{#if formatted_send_later_time }}- <li>- <a id="clear_compose_schedule_state" tabindex="0">{{t "Now" }}</a>- </li>- {{/if}}{{#if possible_send_later_today}}{{#each possible_send_later_today}}<li>diff --git a/web/templates/send_later_popover.hbs b/web/templates/send_later_popover.hbsindex c17e603a104..d5f4a8ea862 100644--- a/web/templates/send_later_popover.hbs+++ b/web/templates/send_later_popover.hbs@@ -2,6 +2,11 @@<li><a class="open_send_later_modal" tabindex="0">{{t "Schedule message" }}</a></li>+ {{#if formatted_send_later_time }}+ <li>+ <a id="clear_compose_schedule_state" tabindex="0">{{t "Cancel scheduling" }}</a>+ </li>+ {{/if}}<hr /><li><a href="#scheduled" tabindex="0">{{t "View scheduled messages" }}</a>