mirror of https://github.com/zulip/zulip.git
compose: Rename disable-btn class.
This commit is a part of the efforts to rename btn-related classes and variables to align with Zulip's no-abbreviations policy and streamline the search results.
This commit is contained in:
parent
a3b9e3c183
commit
c0caeab198
|
@ -125,7 +125,7 @@ export function rewire_clear_message_sent_banners(value: typeof clear_message_se
|
|||
function hide_compose_spinner(): void {
|
||||
$(".compose-submit-button .loader").hide();
|
||||
$(".compose-submit-button span").show();
|
||||
$(".compose-submit-button").removeClass("disable-btn");
|
||||
$(".compose-submit-button").removeClass("compose-button-disabled");
|
||||
}
|
||||
|
||||
export function clear_errors(): void {
|
||||
|
|
|
@ -1199,7 +1199,7 @@ export function hide_compose_spinner(): void {
|
|||
compose_spinner_visible = false;
|
||||
$(".compose-submit-button .loader").hide();
|
||||
$(".compose-submit-button .zulip-icon-send").show();
|
||||
$(".compose-submit-button").removeClass("disable-btn");
|
||||
$(".compose-submit-button").removeClass("compose-button-disabled");
|
||||
}
|
||||
|
||||
export function show_compose_spinner(): void {
|
||||
|
@ -1207,7 +1207,7 @@ export function show_compose_spinner(): void {
|
|||
// Always use white spinner.
|
||||
loading.show_button_spinner($(".compose-submit-button .loader"), true);
|
||||
$(".compose-submit-button .zulip-icon-send").hide();
|
||||
$(".compose-submit-button").addClass("disable-btn");
|
||||
$(".compose-submit-button").addClass("compose-button-disabled");
|
||||
}
|
||||
|
||||
export function get_compose_click_target(element: HTMLElement): Element {
|
||||
|
|
|
@ -1402,6 +1402,10 @@ textarea.new_message_textarea {
|
|||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
.compose-button-disabled {
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
.drag {
|
||||
|
|
Loading…
Reference in New Issue