confirm_dialog: Rename html_yes_button to html_submit_button.

This commit renames the html_yes_button parameter of confirm
dialog widget to html_submit_button and also all the related
variables in confirm_dialog.js.
This will help in keeping a general name when deduplicating
the code for confirm_dialog and edit_fields_modal.
This commit is contained in:
sahil839
2021-07-05 18:41:23 +05:30
committed by Tim Abbott
parent eaf69bbf16
commit 055d7113f2
15 changed files with 23 additions and 23 deletions

View File

@@ -883,7 +883,7 @@ export function initialize() {
{stream_name: sub.name},
),
html_body,
html_yes_button: $t_html({defaultMessage: "Confirm"}),
html_submit_button: $t_html({defaultMessage: "Confirm"}),
on_click: remove_user_from_private_stream,
fade: true,
});
@@ -952,7 +952,7 @@ export function initialize() {
),
help_link: "/help/archive-a-stream",
html_body,
html_yes_button: $t_html({defaultMessage: "Confirm"}),
html_submit_button: $t_html({defaultMessage: "Confirm"}),
on_click: do_archive_stream,
fade: true,
});