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 modal: Use Confirm and Cancel label options.

Nikhil Maske50cd868749c5
diff --git a/frontend_tests/puppeteer_tests/user-deactivation.ts b/frontend_tests/puppeteer_tests/user-deactivation.ts
index 55194be60b9..1f6b4d7c97c 100644
--- a/frontend_tests/puppeteer_tests/user-deactivation.ts
+++ b/frontend_tests/puppeteer_tests/user-deactivation.ts
@@ -32,7 +32,7 @@ async function test_deactivate_user(page: Page): Promise<void> {
);
assert.strictEqual(
await common.get_text_from_selector(page, "#deactivation_user_modal .do_deactivate_button"),
- "Deactivate now",
+ "Confirm",
"Deactivate button has incorrect text.",
);
await page.click("#deactivation_user_modal .do_deactivate_button");
diff --git a/static/templates/delete_topic_modal.hbs b/static/templates/delete_topic_modal.hbs
index 27fc23ae95a..f5e692ce7da 100644
--- a/static/templates/delete_topic_modal.hbs
+++ b/static/templates/delete_topic_modal.hbs
@@ -13,7 +13,7 @@
<div class="modal-footer">
<button class="button" data-dismiss="modal">{{t "Cancel" }}</button>
<button class="button btn-danger rounded" id="do_delete_topic_button">
- {{t "Delete topic" }}
+ {{t "Confirm" }}
</button>
</div>
</div>
diff --git a/static/templates/settings/account_settings.hbs b/static/templates/settings/account_settings.hbs
index a3f8cfbb2fe..1756728959f 100644
--- a/static/templates/settings/account_settings.hbs
+++ b/static/templates/settings/account_settings.hbs
@@ -179,7 +179,7 @@
<button class="button" data-dismiss="modal">{{t "Cancel" }}</button>
<button class="button btn-danger rounded" id="do_deactivate_self_button">
<object class="loader" type="image/svg+xml" data="/static/images/loader.svg"></object>
- <span>{{t "Deactivate now" }}</span>
+ <span>{{t "Confirm" }}</span>
</button>
</div>
</div>
diff --git a/static/templates/settings/deactivate_realm_modal.hbs b/static/templates/settings/deactivate_realm_modal.hbs
index 78dded7433d..d8acaed2da3 100644
--- a/static/templates/settings/deactivate_realm_modal.hbs
+++ b/static/templates/settings/deactivate_realm_modal.hbs
@@ -8,6 +8,6 @@
</div>
<div class="modal-footer">
<button type="button" class="button rounded" data-dismiss="modal">{{t "Cancel" }}</button>
- <button type="button" class="button rounded btn-danger" id="do_deactivate_realm_button">{{t "Deactivate organization" }}</button>
+ <button type="button" class="button rounded btn-danger" id="do_deactivate_realm_button">{{t "Confirm" }}</button>
</div>
</div>
diff --git a/static/templates/settings/deactivation_stream_modal.hbs b/static/templates/settings/deactivation_stream_modal.hbs
index 3db2768a901..cb0d3d134a3 100644
--- a/static/templates/settings/deactivation_stream_modal.hbs
+++ b/static/templates/settings/deactivation_stream_modal.hbs
@@ -8,6 +8,6 @@
</div>
<div class="modal-footer">
<button class="button rounded close-modal-btn" data-dismiss="modal">{{t "Cancel" }}</button>
- <button class="button rounded btn-danger" id="do_deactivate_stream_button" data-stream-id="{{stream_id}}">{{t "Yes, archive this stream" }}</button>
+ <button class="button rounded btn-danger" id="do_deactivate_stream_button" data-stream-id="{{stream_id}}">{{t "Confirm" }}</button>
</div>
</div>
diff --git a/static/templates/settings/deactivation_user_modal.hbs b/static/templates/settings/deactivation_user_modal.hbs
index 1aeb80319ca..9f19ae6e0af 100644
--- a/static/templates/settings/deactivation_user_modal.hbs
+++ b/static/templates/settings/deactivation_user_modal.hbs
@@ -9,6 +9,6 @@
</div>
<div class="modal-footer">
<button class="button rounded" data-dismiss="modal">{{t "Cancel" }}</button>
- <button class="button rounded btn-danger do_deactivate_button">{{t "Deactivate now" }}</button>
+ <button class="button rounded btn-danger do_deactivate_button">{{t "Confirm" }}</button>
</div>
</div>