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:
Pavel Djundik 2018-06-26 09:51:57 +03:00 committed by GitHub
commit 6089372ac7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,10 +75,10 @@ function addWhoisItem() {
}); });
addContextMenuItem({ addContextMenuItem({
check: (target) => target.hasClass("user"), check: (target) => target.hasClass("user") || target.hasClass("query"),
className: "action-whois", className: "action-whois",
displayName: "User information", displayName: "User information",
data: (target) => target.attr("data-name"), data: (target) => target.attr("data-name") || target.attr("aria-label"),
callback: whois, callback: whois,
}); });
} }
@ -385,6 +385,7 @@ function addIgnoreListItem() {
} }
function addDefaultItems() { function addDefaultItems() {
addFocusItem();
addWhoisItem(); addWhoisItem();
addQueryItem(); addQueryItem();
addKickItem(); addKickItem();
@ -392,7 +393,6 @@ function addDefaultItems() {
addDeopItem(); addDeopItem();
addVoiceItem(); addVoiceItem();
addDevoiceItem(); addDevoiceItem();
addFocusItem();
addEditNetworkItem(); addEditNetworkItem();
addJoinItem(); addJoinItem();
addChannelListItem(); addChannelListItem();