Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
scheduled_messages: Disallow dates in the past in the UI.
Tim Abbott56c5c8902b5b
diff --git a/web/src/popover_menus.js b/web/src/popover_menus.jsindex 3652bca6477..a6899cfab62 100644--- a/web/src/popover_menus.js+++ b/web/src/popover_menus.js@@ -911,10 +911,12 @@ export function initialize() {}});$send_later_modal.on("click", ".send_later_custom", (e) => {+ const current_time = new Date();flatpickr.show_flatpickr($(".send_later_custom")[0],update_scheduled_date_from_modal,- new Date(),+ new Date(current_time.getTime() + 60 * 60 * 1000),+ {minDate: new Date(current_time.getTime() + 5 * 60 * 1000)},);e.preventDefault();e.stopPropagation();