move_topic_modal: Use dialog_error to display error.

Fixes #20210
This commit is contained in:
Ganesh Pawar
2021-11-24 20:33:21 +05:30
committed by Tim Abbott
parent f4dac2dd77
commit 19c4a63d51
4 changed files with 13 additions and 23 deletions

View File

@@ -1063,10 +1063,10 @@ export function move_topic_containing_message_to_stream(
dialog_widget.close_modal();
}
if (currently_topic_editing_messages.includes(message_id)) {
$("#topic_stream_edit_form_error .error-msg").text(
$t({defaultMessage: "A Topic Move already in progress."}),
ui_report.client_error(
$t_html({defaultMessage: "A Topic Move already in progress."}),
$("#move_topic_modal #dialog_error"),
);
$("#topic_stream_edit_form_error").show();
return;
}
currently_topic_editing_messages.push(message_id);