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: Replace "Delete bot" with "Deactivate bot".

NerdyLuciferc79849dab661
diff --git a/static/js/settings_bots.js b/static/js/settings_bots.js
index 5bf8193e995..b0491c9d878 100644
--- a/static/js/settings_bots.js
+++ b/static/js/settings_bots.js
@@ -362,7 +362,7 @@ export function set_up() {
$(`[name*='${CSS.escape(selected_bot)}']`).show();
});
- $("#active_bots_list").on("click", "button.delete_bot", (e) => {
+ $("#active_bots_list").on("click", "button.deactivate_bot", (e) => {
const bot_id = Number.parseInt($(e.currentTarget).attr("data-user-id"), 10);
channel.del({
diff --git a/static/templates/settings/bot_avatar_row.hbs b/static/templates/settings/bot_avatar_row.hbs
index 8ced772b072..256f2f99de2 100644
--- a/static/templates/settings/bot_avatar_row.hbs
+++ b/static/templates/settings/bot_avatar_row.hbs
@@ -14,8 +14,8 @@
<button type="submit" id="copy_zuliprc" class="btn copy_zuliprc" title="{{t 'Copy zuliprc' }}">
<i class="fa fa-clipboard copy-gold"></i>
</button>
- <button type="submit" class="btn delete_bot" title="{{t 'Delete bot' }}" data-user-id="{{user_id}}">
- <i class="fa fa-trash-o danger-red" aria-hidden="true"></i>
+ <button type="submit" class="btn deactivate_bot danger-red" title="{{t 'Deactivate bot' }}" data-user-id="{{user_id}}">
+ <i class="fa fa-user-times" aria-hidden="true"></i>
</button>
</div>
{{/if}}