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

Function markLocalHotfixes

source/options/feature-list.tsx:27–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27async function markLocalHotfixes(): Promise<void> {
28 for (const [feature, relatedIssue] of await getLocalHotfixes()) {
29 if (!importedFeatures.includes(feature)) {
30 continue;
31 }
32
33 const input = $<HTMLInputElement>('#' + feature);
34 input.disabled = true;
35 input.removeAttribute('name');
36 $(`.feature-name[for="${feature}"]`).after(
37 <span className="hotfix-notice">{' '}(Disabled due to {createRghIssueLink(relatedIssue, true)})</span>,
38 );
39 }
40}
41
42function buildFeatureCheckbox({id, description, screenshot}: FeatureMeta): HTMLElement {
43 return (

Callers 1

initFeatureListFunction · 0.85

Calls 3

getLocalHotfixesFunction · 0.85
createRghIssueLinkFunction · 0.85
includesMethod · 0.80

Tested by

no test coverage detected