message_edit: Always show white spinner on "Save" button.

We should show "white" spinner on "Save" button in message edit
form irrespective of the theme, as it looks better with the
button having blue background.
This commit is contained in:
Sahil Batra
2023-12-11 14:47:43 +05:30
committed by Tim Abbott
parent d6e30ee3e8
commit 5792895c10

View File

@@ -288,8 +288,9 @@ export function hide_message_edit_spinner($row) {
}
export function show_message_edit_spinner($row) {
const using_dark_theme = settings_data.using_dark_theme();
loading.show_button_spinner($row.find(".loader"), using_dark_theme);
// Always show the white spinner like we
// 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");