mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
scheduled messages: Allow user to reschedule quickly from edit window.
Currently we unschedule messages as soon as they're opened for editing. Users have requested a way to easily reschedule, especially for situations where they didn't end up wanting to edit the messages in the first place. This commit adds an action button to reschedule the message for the time it was originally scheduled for. CZO: https://chat.zulip.org/#narrow/stream/9-issues/topic/Scheduled.20message.20sent.20to.20draft.20if.20no.20changes
This commit is contained in:
@@ -566,6 +566,18 @@ export function initialize() {
|
||||
},
|
||||
);
|
||||
|
||||
$("body").on(
|
||||
"click",
|
||||
`.${CSS.escape(
|
||||
compose_banner.CLASSNAMES.unscheduled_message,
|
||||
)} .main-view-banner-action-button`,
|
||||
(event) => {
|
||||
event.preventDefault();
|
||||
const send_at_timestamp = popover_menus.get_selected_send_later_timestamp();
|
||||
popover_menus.do_schedule_message(send_at_timestamp);
|
||||
},
|
||||
);
|
||||
|
||||
$("body").on(
|
||||
"click",
|
||||
`.${CSS.escape(
|
||||
|
||||
Reference in New Issue
Block a user