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.

popover: Show normal popover for the `stream_subscription_info` users.

ryanreh99111ba564aefa
diff --git a/static/js/stream_edit.js b/static/js/stream_edit.js
index b7df7b8165a..ac1572c26be 100644
--- a/static/js/stream_edit.js
+++ b/static/js/stream_edit.js
@@ -783,14 +783,6 @@ exports.initialize = function () {
exports.remove_user_from_stream(target_user_id, sub, removal_success, removal_failure);
});
- $("#subscriptions_table").on("click", ".stream_subscription_info .view_user_profile", (e) => {
- const user_id = Number.parseInt($(e.target).attr("data-id"), 10);
- const user = people.get_by_user_id(user_id);
- popovers.show_user_profile(user);
- e.stopPropagation();
- e.preventDefault();
- });
-
// This handler isn't part of the normal edit interface; it's the convenient
// checkmark in the subscriber list.
$("#subscriptions_table").on("click", ".sub_unsub_button", (e) => {
diff --git a/static/templates/stream_subscription_info.hbs b/static/templates/stream_subscription_info.hbs
index 4bd166092a5..18001c96bd3 100644
--- a/static/templates/stream_subscription_info.hbs
+++ b/static/templates/stream_subscription_info.hbs
@@ -2,12 +2,12 @@
{{#if @first}}
{{t "Successfully subscribed users:" }}
{{/if}}
- <a data-id="{{user_id}}" class="view_user_profile">{{full_name}}</a>{{#unless @last}},{{else}}.{{/unless}}
+ <a data-user-id="{{user_id}}" class="view_user_profile">{{full_name}}</a>{{#unless @last}},{{else}}.{{/unless}}
{{/each}}
<br>
{{#each already_subscribed_users}}
{{#if @first}}
{{t "Already subscribed users:" }}
{{/if}}
- <a data-id="{{user_id}}" class="view_user_profile">{{full_name}}</a>{{#unless @last}},{{else}}.{{/unless}}
+ <a data-user-id="{{user_id}}" class="view_user_profile">{{full_name}}</a>{{#unless @last}},{{else}}.{{/unless}}
{{/each}}