popovers: Add data-user-id in user profile modal.

This commit is contained in:
m-e-l-u-h-a-n 2021-06-24 16:45:57 +05:30 committed by Tim Abbott
parent 8070f5e1e2
commit 14f46a831d
2 changed files with 2 additions and 1 deletions

View File

@ -131,6 +131,7 @@ export function show_user_profile(user) {
const user_streams = stream_data.get_subscribed_streams_for_user(user.user_id);
const groups_of_user = user_groups.get_user_groups_of_user(user.user_id);
const args = {
user_id: user.user_id,
full_name: user.full_name,
email: people.get_visible_email(user),
profile_data,

View File

@ -1,5 +1,5 @@
<div id="user-profile-modal" class="modal new-style modal-bg fade{{#unless profile_data.length}} no-fields{{/unless}}"
tabindex="-1" role="dialog" aria-labelledby="user_profile_modal label" aria-hidden="true">
tabindex="-1" role="dialog" aria-labelledby="user_profile_modal label" aria-hidden="true" data-user-id="{{user_id}}">
<div class="modal-body" id="body" data-simplebar data-simplebar-auto-hide="false">
<button type="button" class="close" data-dismiss="modal" aria-label="{{t 'Close' }}">
<span aria-hidden="true" id="exit-sign">&times;</span>