settings: Replace "Delete bot" with "Deactivate bot".

The feature deactivates the bot user; Zulip has no "delete bot"
feature. So fix the label to match what it does.

We also change the icon to match the one we use for deactivating users
in the "Manage users" UI.
This commit is contained in:
NerdyLucifer
2022-03-26 12:31:27 +05:30
committed by Tim Abbott
parent 3a3ed78fd9
commit c79849dab6
2 changed files with 3 additions and 3 deletions

View File

@@ -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({