mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 06:58:31 +00:00
modals: Rename close_modal_if_open to close_if_open.
This commit is contained in:
@@ -207,9 +207,9 @@ export function close_modal(modal_id: string, conf: Pick<ModalConfig, "on_hidden
|
||||
Micromodal.close(modal_id);
|
||||
}
|
||||
|
||||
export function close_modal_if_open(modal_id: string): void {
|
||||
export function close_if_open(modal_id: string): void {
|
||||
if (modal_id === undefined) {
|
||||
blueslip.error("Undefined id was passed into close_modal_if_open");
|
||||
blueslip.error("Undefined id was passed into close_if_open");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ export function open_send_later_menu() {
|
||||
}
|
||||
|
||||
export function do_schedule_message(send_at_time) {
|
||||
modals.close_modal_if_open("send_later_modal");
|
||||
modals.close_if_open("send_later_modal");
|
||||
|
||||
if (!Number.isInteger(send_at_time)) {
|
||||
// Convert to timestamp if this is not a timestamp.
|
||||
|
||||
@@ -294,7 +294,7 @@ export function get_custom_profile_field_data(user, field, field_types) {
|
||||
|
||||
export function hide_user_profile() {
|
||||
user_streams_list_widget = undefined;
|
||||
modals.close_modal_if_open("user-profile-modal");
|
||||
modals.close_if_open("user-profile-modal");
|
||||
}
|
||||
|
||||
function show_manage_user_tab(target) {
|
||||
|
||||
Reference in New Issue
Block a user