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: Add user-id column to bot list.

Sahil Batra2105b5eda85e
diff --git a/static/js/settings_users.js b/static/js/settings_users.js
index 410006eb07d..d4152f8058a 100644
--- a/static/js/settings_users.js
+++ b/static/js/settings_users.js
@@ -276,6 +276,7 @@ section.bots.create_table = () => {
sort_fields: {
email: sort_bot_email,
bot_owner: sort_bot_owner,
+ id: sort_user_id,
},
simplebar_container: $("#admin-bot-list .progressive-table-wrapper"),
});
diff --git a/static/templates/settings/admin_user_list.hbs b/static/templates/settings/admin_user_list.hbs
index d3411fc0301..07eda4d1aa2 100644
--- a/static/templates/settings/admin_user_list.hbs
+++ b/static/templates/settings/admin_user_list.hbs
@@ -8,11 +8,9 @@
<span class="email">{{display_email}}</span>
</td>
{{/if}}
- {{#unless is_bot}}
<td>
<span class="user_id">{{user_id}}</span>
</td>
- {{/unless}}
{{#unless is_bot}}
<td>
<span class="user_role">{{user_role_text}}</span>
diff --git a/static/templates/settings/bot_list_admin.hbs b/static/templates/settings/bot_list_admin.hbs
index 1f33b7ce931..3440b17f309 100644
--- a/static/templates/settings/bot_list_admin.hbs
+++ b/static/templates/settings/bot_list_admin.hbs
@@ -9,6 +9,7 @@
<thead class="table-sticky-headers">
<th class="active" data-sort="alphabetic" data-sort-prop="full_name">{{t "Name" }}</th>
<th data-sort="email">{{t "Email" }}</th>
+ <th data-sort="id">{{t "User ID"}}</th>
<th data-sort="bot_owner">{{t "Owner" }}</th>
<th data-sort="alphabetic" data-sort-prop="bot_type">{{t "Bot type" }}</th>
{{#if is_admin}}