MCPcopy Create free account
hub / github.com/codeaashu/claude-code / confirmRemove

Function confirmRemove

src/commands/plugin/ManageMarketplaces.tsx:344–354  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

342
343 // Handle confirming marketplace removal
344 const confirmRemove = async () => {
345 if (!selectedMarketplace) return;
346
347 // Mark for removal and apply
348 const newStates = marketplaceStates.map(state => state.name === selectedMarketplace.name ? {
349 ...state,
350 pendingRemove: true
351 } : state);
352 setMarketplaceStates(newStates);
353 await applyChanges(newStates);
354 };
355
356 // Build menu options for details view
357 const buildDetailsMenuOptions = (marketplace: MarketplaceState | null): Array<{

Callers 1

ManageMarketplacesFunction · 0.85

Calls 1

applyChangesFunction · 0.85

Tested by

no test coverage detected