Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

confirm_dialog_modal: Use Confirm and Cancel label options.

Nikhil Maske66fa31f85cb0
diff --git a/static/js/avatar.js b/static/js/avatar.js
index d428b7f879f..faa82123813 100644
--- a/static/js/avatar.js
+++ b/static/js/avatar.js
@@ -86,7 +86,7 @@ export function build_user_avatar_widget(upload_function) {
parent: modal_parent,
html_heading: i18n.t("Delete profile picture"),
html_body,
- html_yes_button: i18n.t("Delete"),
+ html_yes_button: i18n.t("Confirm"),
on_click: delete_user_avatar,
});
});
diff --git a/static/js/settings_user_groups.js b/static/js/settings_user_groups.js
index cfa0fc95837..9438792539c 100644
--- a/static/js/settings_user_groups.js
+++ b/static/js/settings_user_groups.js
@@ -366,7 +366,7 @@ export function set_up() {
parent: modal_parent,
html_heading: i18n.t("Delete user group"),
html_body,
- html_yes_button: i18n.t("Delete"),
+ html_yes_button: i18n.t("Confirm"),
on_click: delete_user_group,
});
});
diff --git a/static/js/starred_messages_ui.js b/static/js/starred_messages_ui.js
index 8b5fb92256b..4f8ab70ae14 100644
--- a/static/js/starred_messages_ui.js
+++ b/static/js/starred_messages_ui.js
@@ -15,7 +15,7 @@ export function confirm_unstar_all_messages() {
parent: modal_parent,
html_heading: i18n.t("Unstar all messages"),
html_body,
- html_yes_button: i18n.t("Unstar messages"),
+ html_yes_button: i18n.t("Confirm"),
on_click: message_flags.unstar_all_messages,
});
}
@@ -34,7 +34,7 @@ export function confirm_unstar_all_messages_in_topic(stream_id, topic) {
parent: modal_parent,
html_heading: i18n.t("Unstar messages in topic"),
html_body,
- html_yes_button: i18n.t("Unstar messages"),
+ html_yes_button: i18n.t("Confirm"),
on_click,
});
}