modals: Convert schedule message modal to popover.

Fixes: #35003
This commit is contained in:
Maneesh Shukla
2025-06-24 20:42:37 +05:30
committed by Tim Abbott
parent 3d3f7b3782
commit 3b874c3dfa
10 changed files with 118 additions and 130 deletions

View File

@@ -137,9 +137,9 @@ export function initialize() {
if (is_edit_input) {
message_edit.save_message_row_edit($row);
} else if (event.target.dataset.validationTrigger === "schedule") {
compose_send_menu_popover.open_send_later_menu();
compose_send_menu_popover.open_schedule_message_menu();
// We need to set this flag to true here because `open_send_later_menu` validates the message and sets
// We need to set this flag to true here because `open_schedule_message_menu` validates the message and sets
// the user acknowledged wildcard flag back to 'false' and we don't want that to happen because then it
// would again show the wildcard warning banner when we actually send the message from 'send-later' modal.
compose_validate.set_user_acknowledged_stream_wildcard_flag(true);