user_card_popover: Rename `info_popover_actions` class.

This commit is contained in:
Daniil Fadeev 2023-09-14 21:32:54 +04:00 committed by Tim Abbott
parent 7c3f79df0d
commit ff892925ce
3 changed files with 12 additions and 12 deletions

View File

@ -24,13 +24,13 @@ import * as narrow from "./narrow";
import * as overlays from "./overlays";
import {page_params} from "./page_params";
import * as people from "./people";
import * as popovers from "./popovers";
import {
focus_first_popover_item,
hide_all,
hide_all_except_sidebars,
popover_items_handle_keyboard,
} from "./popovers";
import * as popovers from "./popovers";
import * as rows from "./rows";
import * as settings_config from "./settings_config";
import * as settings_users from "./settings_users";
@ -571,7 +571,7 @@ export function register_click_handlers() {
toggle_user_info_popover_for_message(this, user, message);
});
$("body").on("click", ".info_popover_actions .narrow_to_private_messages", (e) => {
$("body").on("click", ".user-card-popover-actions .narrow_to_private_messages", (e) => {
const user_id = elem_to_user_id($(e.target).parents("ul"));
const email = people.get_by_user_id(user_id).email;
hide_all();
@ -583,7 +583,7 @@ export function register_click_handlers() {
e.preventDefault();
});
$("body").on("click", ".info_popover_actions .narrow_to_messages_sent", (e) => {
$("body").on("click", ".user-card-popover-actions .narrow_to_messages_sent", (e) => {
const user_id = elem_to_user_id($(e.target).parents("ul"));
const email = people.get_by_user_id(user_id).email;
hide_all();
@ -595,7 +595,7 @@ export function register_click_handlers() {
e.preventDefault();
});
$("body").on("click", ".info_popover_actions .clear_status", (e) => {
$("body").on("click", ".user-card-popover-actions .clear_status", (e) => {
e.preventDefault();
const me = elem_to_user_id($(e.target).parents("ul"));
user_status.server_update_status({
@ -604,12 +604,12 @@ export function register_click_handlers() {
emoji_name: "",
emoji_code: "",
success() {
$(".info_popover_actions #status_message").empty();
$(".user-card-popover-actions #status_message").empty();
},
});
});
$("body").on("click", ".info_popover_actions .sidebar-popover-reactivate-user", (e) => {
$("body").on("click", ".user-card-popover-actions .sidebar-popover-reactivate-user", (e) => {
const user_id = elem_to_user_id($(e.target).parents("ul"));
hide_all();
e.stopPropagation();
@ -630,7 +630,7 @@ export function register_click_handlers() {
settings_users.confirm_reactivation(user_id, handle_confirm, true);
});
$("body").on("click", ".info_popover_actions .view_full_user_profile", (e) => {
$("body").on("click", ".user-card-popover-actions .view_full_user_profile", (e) => {
const user_id = elem_to_user_id($(e.target).parents("ul"));
const user = people.get_by_user_id(user_id);
user_profile.show_user_profile(user);

View File

@ -115,7 +115,7 @@
}
}
.info_popover_actions .custom_user_field {
.user-card-popover-actions .custom_user_field {
display: flex;
align-items: center;
@ -145,7 +145,7 @@
}
}
.info_popover_actions .user-card-popover-manage-menu-btn {
.user-card-popover-actions .user-card-popover-manage-menu-btn {
opacity: 0.8;
&:hover {
@ -210,7 +210,7 @@
}
ul {
&.info_popover_actions i,
&.user-card-popover-actions i,
&.actions_popover i,
&.streams_popover i,
&.topics_popover i {
@ -255,7 +255,7 @@ ul {
}
}
&.info_popover_actions i.fa-edit {
&.user-card-popover-actions i.fa-edit {
vertical-align: middle;
}
}

View File

@ -1,5 +1,5 @@
{{! Contents of the "message info" popup }}
<ul class="nav nav-list info_popover_actions" id="user_info_popover" data-user-id="{{user_id}}">
<ul class="nav nav-list user-card-popover-actions" id="user_info_popover" data-user-id="{{user_id}}">
<li class="popover_user_name_row">
<b class="user_full_name" data-tippy-content="{{user_full_name}}">{{user_full_name}}</b>
{{#if is_active }}