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

Method replaceItem

src/pages/quickTools/quickTools.js:384–388  ·  view source on GitHub ↗
(slotIndex, newItemId)

Source from the content-addressed store, hash-verified

382 }
383
384 replaceItem(slotIndex, newItemId) {
385 settings.value.quicktoolsItems[slotIndex] = newItemId;
386 settings.update();
387 this.refreshActiveSlots([slotIndex]);
388 }
389
390 async handleClick(el) {
391 const type = el.dataset.type;

Callers 1

endDragMethod · 0.95

Calls 2

refreshActiveSlotsMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected