MCPcopy Index your code
hub / github.com/refined-github/refined-github / addButtonIssue

Function addButtonIssue

source/features/quick-mention.tsx:100–111  ·  view source on GitHub ↗
(avatar: HTMLElement)

Source from the content-addressed store, hash-verified

98}
99
100function addButtonIssue(avatar: HTMLElement): void {
101 const isHidden = !elementExists('.markdown-body', avatar.parentElement!);
102 if (isHidden) {
103 return;
104 }
105
106 avatar.style.height = 'auto';
107 avatar.classList.add('react-view');
108 wrap(avatar, <div className="avatar-parent-child d-none d-md-block" />);
109
110 addButton(avatar);
111}
112
113async function init(signal: AbortSignal): Promise<void> {
114 delegate('button.rgh-quick-mention', 'click', mentionUser, {signal});

Callers

nothing calls this directly

Calls 2

wrapFunction · 0.85
addButtonFunction · 0.70

Tested by

no test coverage detected