mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +00:00
move_topic_to_stream: Migrate modal to dialog_widget.
This commit is contained in:
@@ -24,7 +24,6 @@ import * as markdown from "./markdown";
|
||||
import * as message_lists from "./message_lists";
|
||||
import * as message_store from "./message_store";
|
||||
import * as message_viewport from "./message_viewport";
|
||||
import * as overlays from "./overlays";
|
||||
import {page_params} from "./page_params";
|
||||
import * as resize from "./resize";
|
||||
import * as rows from "./rows";
|
||||
@@ -219,18 +218,6 @@ export function show_topic_edit_spinner(row) {
|
||||
$(".topic_edit_spinner").show();
|
||||
}
|
||||
|
||||
export function hide_topic_move_spinner() {
|
||||
const spinner = $("#move_topic_modal .topic_move_spinner");
|
||||
loading.destroy_indicator(spinner);
|
||||
$("#move_topic_modal .modal-footer").show();
|
||||
}
|
||||
|
||||
export function show_topic_move_spinner() {
|
||||
const spinner = $("#move_topic_modal .topic_move_spinner");
|
||||
loading.make_indicator(spinner);
|
||||
$("#move_topic_modal .modal-footer").hide();
|
||||
}
|
||||
|
||||
export function end_if_focused_on_inline_topic_edit() {
|
||||
const focused_elem = $(".topic_edit_form").find(":focus");
|
||||
if (focused_elem.length === 1) {
|
||||
@@ -1073,11 +1060,10 @@ export function move_topic_containing_message_to_stream(
|
||||
currently_topic_editing_messages = currently_topic_editing_messages.filter(
|
||||
(id) => id !== message_id,
|
||||
);
|
||||
hide_topic_move_spinner();
|
||||
overlays.close_modal("#move_topic_modal");
|
||||
dialog_widget.hide_dialog_spinner();
|
||||
dialog_widget.close_modal();
|
||||
}
|
||||
if (currently_topic_editing_messages.includes(message_id)) {
|
||||
hide_topic_move_spinner();
|
||||
$("#topic_stream_edit_form_error .error-msg").text(
|
||||
$t({defaultMessage: "A Topic Move already in progress."}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user