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:
Sayam Samal 2024-11-13 17:26:01 +05:30 committed by Tim Abbott
parent a3b9e3c183
commit c0caeab198
3 changed files with 7 additions and 3 deletions

View File

@ -125,7 +125,7 @@ export function rewire_clear_message_sent_banners(value: typeof clear_message_se
function hide_compose_spinner(): void { function hide_compose_spinner(): void {
$(".compose-submit-button .loader").hide(); $(".compose-submit-button .loader").hide();
$(".compose-submit-button span").show(); $(".compose-submit-button span").show();
$(".compose-submit-button").removeClass("disable-btn"); $(".compose-submit-button").removeClass("compose-button-disabled");
} }
export function clear_errors(): void { export function clear_errors(): void {

View File

@ -1199,7 +1199,7 @@ export function hide_compose_spinner(): void {
compose_spinner_visible = false; compose_spinner_visible = false;
$(".compose-submit-button .loader").hide(); $(".compose-submit-button .loader").hide();
$(".compose-submit-button .zulip-icon-send").show(); $(".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 { export function show_compose_spinner(): void {
@ -1207,7 +1207,7 @@ export function show_compose_spinner(): void {
// Always use white spinner. // Always use white spinner.
loading.show_button_spinner($(".compose-submit-button .loader"), true); loading.show_button_spinner($(".compose-submit-button .loader"), true);
$(".compose-submit-button .zulip-icon-send").hide(); $(".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 { export function get_compose_click_target(element: HTMLElement): Element {

View File

@ -1402,6 +1402,10 @@ textarea.new_message_textarea {
opacity: 0.5; opacity: 0.5;
} }
} }
.compose-button-disabled {
pointer-events: none;
}
} }
.drag { .drag {