mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 12:33:07 +00:00
Merge pull request #2587 from aspotton/userinfo_in_sidebar_context_menu
Add 'User information' (whois) support to the sidebar context menu
This commit is contained in:
commit
6089372ac7
1 changed files with 3 additions and 3 deletions
|
@ -75,10 +75,10 @@ function addWhoisItem() {
|
|||
});
|
||||
|
||||
addContextMenuItem({
|
||||
check: (target) => target.hasClass("user"),
|
||||
check: (target) => target.hasClass("user") || target.hasClass("query"),
|
||||
className: "action-whois",
|
||||
displayName: "User information",
|
||||
data: (target) => target.attr("data-name"),
|
||||
data: (target) => target.attr("data-name") || target.attr("aria-label"),
|
||||
callback: whois,
|
||||
});
|
||||
}
|
||||
|
@ -385,6 +385,7 @@ function addIgnoreListItem() {
|
|||
}
|
||||
|
||||
function addDefaultItems() {
|
||||
addFocusItem();
|
||||
addWhoisItem();
|
||||
addQueryItem();
|
||||
addKickItem();
|
||||
|
@ -392,7 +393,6 @@ function addDefaultItems() {
|
|||
addDeopItem();
|
||||
addVoiceItem();
|
||||
addDevoiceItem();
|
||||
addFocusItem();
|
||||
addEditNetworkItem();
|
||||
addJoinItem();
|
||||
addChannelListItem();
|
||||
|
|
Loading…
Reference in a new issue