MCPcopy Create free account
hub / github.com/TheJoWo/Clean-Clode / createHistoryDeleteButton

Function createHistoryDeleteButton

script.js:276–288  ·  view source on GitHub ↗
(itemId)

Source from the content-addressed store, hash-verified

274 }
275
276 function createHistoryDeleteButton(itemId) {
277 const btn = document.createElement('button');
278 btn.className = 'tui-button tui-bg-red-black history-delete-btn';
279 btn.textContent = '[ DELETE ]';
280
281 btn.addEventListener('click', function() {
282 if (confirm('Delete this history item? This cannot be undone.')) {
283 deleteHistoryItem(itemId);
284 }
285 });
286
287 return btn;
288 }
289
290 function createHistoryCopyButton(text) {
291 const btn = document.createElement('button');

Callers 1

updateHistoryDisplayFunction · 0.85

Calls 1

deleteHistoryItemFunction · 0.85

Tested by

no test coverage detected