mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 20:13:07 +00:00
Fix channel names in context menus
This commit is contained in:
parent
19693bc9b7
commit
b02c3b6c17
2 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
:title="getAriaLabel()"
|
||||
:data-id="channel.id"
|
||||
:data-target="'#chan-' + channel.id"
|
||||
:data-name="channel.name"
|
||||
:aria-controls="'#chan-' + channel.id"
|
||||
:aria-selected="activeChannel && channel === activeChannel.channel"
|
||||
class="chan"
|
||||
|
|
|
@ -272,7 +272,7 @@ function addFocusItem() {
|
|||
addContextMenuItem({
|
||||
check: (target) => target.hasClass("chan"),
|
||||
className: getClass,
|
||||
displayName: (target) => target.attr("aria-label"),
|
||||
displayName: (target) => target.attr("data-name") || target.attr("aria-label"),
|
||||
data: (target) => target.attr("data-target"),
|
||||
callback: focusChan,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue