Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
popovers: Link subscribed users to user cards.
SameepAherbbf5b3d6cede
diff --git a/static/js/popovers.js b/static/js/popovers.jsindex 9e4d9682852..9448420e07d 100644--- a/static/js/popovers.js+++ b/static/js/popovers.js@@ -816,8 +816,8 @@ export function register_click_handlers() {const user_id = elem_to_user_id($(e.target).parents("ul"));const email = people.get_by_user_id(user_id).email;hide_all();- if (overlays.settings_open()) {- overlays.close_overlay("settings");+ if (overlays.is_active()) {+ overlays.close_active();}narrow.by("pm-with", email, {trigger: "user sidebar popover"});e.stopPropagation();@@ -828,8 +828,8 @@ export function register_click_handlers() {const user_id = elem_to_user_id($(e.target).parents("ul"));const email = people.get_by_user_id(user_id).email;hide_all();- if (overlays.settings_open()) {- overlays.close_overlay("settings");+ if (overlays.is_active()) {+ overlays.close_active();}narrow.by("sender", email, {trigger: "user sidebar popover"});e.stopPropagation();@@ -1055,8 +1055,8 @@ export function register_click_handlers() {private_message_recipient: email,});hide_all();- if (overlays.settings_open()) {- overlays.close_overlay("settings");+ if (overlays.is_active()) {+ overlays.close_active();}e.stopPropagation();e.preventDefault();diff --git a/static/templates/stream_settings/stream_member_list_entry.hbs b/static/templates/stream_settings/stream_member_list_entry.hbsindex 20bccc53251..5cee339a1a6 100644--- a/static/templates/stream_settings/stream_member_list_entry.hbs+++ b/static/templates/stream_settings/stream_member_list_entry.hbs@@ -1,6 +1,7 @@<tr data-subscriber-id="{{user_id}}"><td class="subscriber-name">- {{name}}{{#if is_current_user}} <span class="my_user_status">{{t "(you)"}}</span>{{/if}}+ <a data-user-id="{{user_id}}" class="view_user_profile" tabindex="0">{{name}}</a>+ {{#if is_current_user}} <span class="my_user_status">{{t "(you)"}}</span>{{/if}}</td>{{#if show_email}}<td class="subscriber-email">{{email}}</td>