message_edit: 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:23:54 +05:30 committed by Tim Abbott
parent c0caeab198
commit ef929efa1f
2 changed files with 7 additions and 7 deletions

View File

@ -340,8 +340,8 @@ export function stream_and_topic_exist_in_edit_history(
export function hide_message_edit_spinner($row: JQuery): void {
$row.find(".loader").hide();
$row.find(".message_edit_save span").show();
$row.find(".message_edit_save").removeClass("disable-btn");
$row.find(".message_edit_cancel").removeClass("disable-btn");
$row.find(".message_edit_save").removeClass("message-edit-button-disabled");
$row.find(".message_edit_cancel").removeClass("message-edit-button-disabled");
}
export function show_message_edit_spinner($row: JQuery): void {
@ -349,8 +349,8 @@ export function show_message_edit_spinner($row: JQuery): void {
// do for send button in compose box.
loading.show_button_spinner($row.find(".loader"), true);
$row.find(".message_edit_save span").hide();
$row.find(".message_edit_save").addClass("disable-btn");
$row.find(".message_edit_cancel").addClass("disable-btn");
$row.find(".message_edit_save").addClass("message-edit-button-disabled");
$row.find(".message_edit_cancel").addClass("message-edit-button-disabled");
}
export function show_topic_edit_spinner($row: JQuery): void {

View File

@ -746,10 +746,10 @@ of the base style defined for a read-only textarea in dark mode. */
.btn-wrapper {
cursor: not-allowed;
}
}
.disable-btn {
pointer-events: none;
}
.message-edit-button-disabled {
pointer-events: none;
}
/* Reduce some of the heavy padding from Bootstrap. */