mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 20:02:15 +00:00
compose: Fix buttons in error banners is not clickable.
This commit is contained in:
committed by
Tim Abbott
parent
eb56703310
commit
914ed51d70
@@ -51,7 +51,9 @@ export const CLASSNAMES = {
|
|||||||
user_not_subscribed: "user_not_subscribed",
|
user_not_subscribed: "user_not_subscribed",
|
||||||
};
|
};
|
||||||
|
|
||||||
export function append_compose_banner_to_banner_list(new_row: HTMLElement): void {
|
export function append_compose_banner_to_banner_list(
|
||||||
|
new_row: HTMLElement | JQuery.htmlString,
|
||||||
|
): void {
|
||||||
scroll_util.get_content_element($("#compose_banners")).append(new_row);
|
scroll_util.get_content_element($("#compose_banners")).append(new_row);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,8 +101,7 @@ export function show_error_message(message: string, classname: string, $bad_inpu
|
|||||||
button_text: null,
|
button_text: null,
|
||||||
classname,
|
classname,
|
||||||
});
|
});
|
||||||
const $compose_banner_area = $("#compose_banners");
|
append_compose_banner_to_banner_list(new_row);
|
||||||
$compose_banner_area.append(new_row);
|
|
||||||
|
|
||||||
hide_compose_spinner();
|
hide_compose_spinner();
|
||||||
|
|
||||||
@@ -118,8 +119,7 @@ export function show_stream_does_not_exist_error(stream_name: string): void {
|
|||||||
stream_name,
|
stream_name,
|
||||||
classname: CLASSNAMES.stream_does_not_exist,
|
classname: CLASSNAMES.stream_does_not_exist,
|
||||||
});
|
});
|
||||||
const $compose_banner_area = $("#compose_banners");
|
append_compose_banner_to_banner_list(new_row);
|
||||||
$compose_banner_area.append(new_row);
|
|
||||||
hide_compose_spinner();
|
hide_compose_spinner();
|
||||||
|
|
||||||
// A copy of `compose_recipient.open_compose_stream_dropup()` that
|
// A copy of `compose_recipient.open_compose_stream_dropup()` that
|
||||||
|
|||||||
Reference in New Issue
Block a user