mirror of https://github.com/zulip/zulip.git
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:
parent
3a3ed78fd9
commit
c79849dab6
|
@ -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({
|
||||
|
|
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue