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(); $(`[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); const bot_id = Number.parseInt($(e.currentTarget).attr("data-user-id"), 10);
channel.del({ channel.del({

View File

@ -14,8 +14,8 @@
<button type="submit" id="copy_zuliprc" class="btn copy_zuliprc" title="{{t 'Copy zuliprc' }}"> <button type="submit" id="copy_zuliprc" class="btn copy_zuliprc" title="{{t 'Copy zuliprc' }}">
<i class="fa fa-clipboard copy-gold"></i> <i class="fa fa-clipboard copy-gold"></i>
</button> </button>
<button type="submit" class="btn delete_bot" title="{{t 'Delete bot' }}" data-user-id="{{user_id}}"> <button type="submit" class="btn deactivate_bot danger-red" title="{{t 'Deactivate bot' }}" data-user-id="{{user_id}}">
<i class="fa fa-trash-o danger-red" aria-hidden="true"></i> <i class="fa fa-user-times" aria-hidden="true"></i>
</button> </button>
</div> </div>
{{/if}} {{/if}}