mirror of
https://github.com/zulip/zulip.git
synced 2025-11-08 16:01:58 +00:00
compose: Fix behavior when scheduling message using slash command.
We show the loading spinner when scheduling message using slash command as the submit button present is "Send" button and not "Schedule" button. This commit fixes the behavior to hide the loading spinner in case of both success and error and also resets the UI (mainly enabling the textarea element and clearing the compose box) after successful scheduling of message using the slash command.
This commit is contained in:
@@ -332,7 +332,8 @@ export function finish() {
|
||||
if (popover_menus.is_time_selected_for_schedule()) {
|
||||
schedule_message_to_custom_date();
|
||||
} else if (reminder.is_deferred_delivery(message_content)) {
|
||||
reminder.schedule_message();
|
||||
const request = create_message_object();
|
||||
reminder.schedule_message(request, clear_compose_box);
|
||||
} else {
|
||||
send_message();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user