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.

settings_bots: Change of text in bot deactivate confirmation modal.

yogesh sirsatd090347ea9ae
diff --git a/frontend_tests/puppeteer_tests/user-deactivation.ts b/frontend_tests/puppeteer_tests/user-deactivation.ts
index 4d4a2848987..d571aeaddeb 100644
--- a/frontend_tests/puppeteer_tests/user-deactivation.ts
+++ b/frontend_tests/puppeteer_tests/user-deactivation.ts
@@ -103,7 +103,7 @@ async function test_bot_deactivation_and_reactivation(page: Page): Promise<void>
assert.strictEqual(
await common.get_text_from_selector(page, ".dialog_heading"),
- "Deactivate Zulip Default Bot",
+ "Deactivate Zulip Default Bot?",
"Unexpected title for deactivate bot modal",
);
assert.strictEqual(
diff --git a/static/js/settings_users.js b/static/js/settings_users.js
index 98c672bfb90..7be2b9d4ffb 100644
--- a/static/js/settings_users.js
+++ b/static/js/settings_users.js
@@ -489,14 +489,10 @@ function handle_deactivation($tbody) {
function confirm_bot_deactivation(bot_id, handle_confirm, loading_spinner) {
const bot = people.get_by_user_id(bot_id);
- const opts = {
- username: bot.full_name,
- email: settings_data.email_for_user_settings(bot),
- };
- const html_body = render_settings_deactivation_bot_modal(opts);
+ const html_body = render_settings_deactivation_bot_modal();
confirm_dialog.launch({
- html_heading: $t_html({defaultMessage: "Deactivate {name}"}, {name: bot.full_name}),
+ html_heading: $t_html({defaultMessage: "Deactivate {name}?"}, {name: bot.full_name}),
help_link: "/help/deactivate-or-reactivate-a-bot",
html_body,
on_click: handle_confirm,
diff --git a/static/templates/confirm_dialog/confirm_deactivate_bot.hbs b/static/templates/confirm_dialog/confirm_deactivate_bot.hbs
index d67b4926977..b0879638a73 100644
--- a/static/templates/confirm_dialog/confirm_deactivate_bot.hbs
+++ b/static/templates/confirm_dialog/confirm_deactivate_bot.hbs
@@ -1,7 +1 @@
-<p>
- {{#tr}}
- When you deactivate <z-user></z-user>.
- {{#*inline "z-user"}}<strong>{{username}}</strong>{{#if email}} &lt;{{email}}&gt;{{/if}}{{/inline}}
- {{/tr}}
-</p>
<p>{{t "A deactivated bot cannot send messages, access data, or take any other action." }}</p>