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.

popovers: Rename data-owner-id and data-bot-owner-id to data-user-id.

sahil839569ef4869934
diff --git a/static/js/popovers.js b/static/js/popovers.js
index cf3d23a4abb..a23600f5329 100644
--- a/static/js/popovers.js
+++ b/static/js/popovers.js
@@ -853,7 +853,7 @@ exports.register_click_handlers = function () {
});
$("body").on("click", ".bot-owner-name", (e) => {
- const user_id = parseInt($(e.target).attr("data-bot-owner-id"), 10);
+ const user_id = parseInt($(e.target).attr("data-user-id"), 10);
const user = people.get_by_user_id(user_id);
exports.show_user_profile(user);
});
diff --git a/static/js/settings_users.js b/static/js/settings_users.js
index 18ce9fdee6e..7251e2007aa 100644
--- a/static/js/settings_users.js
+++ b/static/js/settings_users.js
@@ -585,7 +585,7 @@ function handle_reactivation(tbody, status_field) {
function handle_bot_owner_profile(tbody) {
tbody.on("click", ".user_row .view_user_profile", (e) => {
- const owner_id = parseInt($(e.target).attr("data-owner-id"), 10);
+ const owner_id = parseInt($(e.target).attr("data-user-id"), 10);
const owner = people.get_by_user_id(owner_id);
popovers.show_user_profile(owner);
e.stopPropagation();
diff --git a/static/templates/admin_user_list.hbs b/static/templates/admin_user_list.hbs
index a5ad5f11bcd..6e8b13a857b 100644
--- a/static/templates/admin_user_list.hbs
+++ b/static/templates/admin_user_list.hbs
@@ -29,7 +29,7 @@
{{#if no_owner }}
{{bot_owner_full_name}}
{{else}}
- <a data-owner-id="{{bot_owner_id}}" href="#" class="view_user_profile">{{bot_owner_full_name}}</a>
+ <a data-user-id="{{bot_owner_id}}" href="#" class="view_user_profile">{{bot_owner_full_name}}</a>
{{/if}}
</span>
</td>
diff --git a/static/templates/user_info_popover_content.hbs b/static/templates/user_info_popover_content.hbs
index 1935cc22ec2..ea22d15977a 100644
--- a/static/templates/user_info_popover_content.hbs
+++ b/static/templates/user_info_popover_content.hbs
@@ -35,7 +35,7 @@
{{#if is_bot}}
{{#if bot_owner}}
<li>{{#tr this}}Owner{{/tr}}:
- <span class="bot-owner-name" data-bot-owner-id='{{ bot_owner.user_id }}'>
+ <span class="bot-owner-name" data-user-id='{{ bot_owner.user_id }}'>
{{bot_owner.full_name}}
</span>
</li>