Merge pull request #1858 from thelounge/yamanickill/context-menu-banlist
Add banlist context menu item if user isn't normal user
This commit is contained in:
commit
31f1c2bf2b
@ -133,6 +133,14 @@ $(function() {
|
||||
data: target.data("id"),
|
||||
});
|
||||
}
|
||||
if (target.hasClass("channel")) {
|
||||
output += templates.contextmenu_item({
|
||||
class: "list",
|
||||
action: "banlist",
|
||||
text: "List banned users",
|
||||
data: target.data("id"),
|
||||
});
|
||||
}
|
||||
output += templates.contextmenu_item({
|
||||
class: "close",
|
||||
action: "close",
|
||||
@ -478,6 +486,12 @@ $(function() {
|
||||
text: "/list",
|
||||
});
|
||||
},
|
||||
banlist: function(itemData) {
|
||||
socket.emit("input", {
|
||||
target: itemData,
|
||||
text: "/banlist",
|
||||
});
|
||||
},
|
||||
whois: function(itemData) {
|
||||
const chan = utils.findCurrentNetworkChan(itemData);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user