MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / updateHistoryButton

Function updateHistoryButton

src/handlers/quickToolsInit.js:404–421  ·  view source on GitHub ↗
(id, disabled)

Source from the content-addressed store, hash-verified

402}
403
404function updateHistoryButton(id, disabled) {
405 const buttons = new Set();
406
407 for (const $container of [
408 quickTools.$footer,
409 quickTools.$row1,
410 quickTools.$row2,
411 ]) {
412 $container?.querySelectorAll(`[data-id="${id}"]`)?.forEach(($button) => {
413 buttons.add($button);
414 });
415 }
416
417 buttons.forEach(($button) => {
418 $button.disabled = disabled;
419 $button.setAttribute("aria-disabled", String(disabled));
420 });
421}

Callers 1

updateHistoryButtonsFunction · 0.85

Calls 2

StringInterface · 0.85
addMethod · 0.80

Tested by

no test coverage detected