MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / updatePendingTagData

Function updatePendingTagData

renderer.js:9186–9210  ·  view source on GitHub ↗
(filePath, tagData)

Source from the content-addressed store, hash-verified

9184 // Reset the input state after successful deletion
9185 resetInputState();
9186
9187 // Refresh the tag list
9188 await loadTags();
9189
9190 // Refresh the model grid to update any models that had these tags
9191 if (typeof window.performCombinedSearch === 'function') {
9192 await window.performCombinedSearch();
9193 } else if (typeof window.forceGridRefresh === 'function') {
9194 await window.forceGridRefresh();
9195 }
9196 } catch (error) {
9197 console.error('Error deleting tags:', error);
9198 await window.electron.showMessage('Error', 'Failed to delete tags: ' + error.message);
9199 }
9200 }
9201
9202 // Make sure this event listener exists
9203 document.getElementById('delete-tag-button')?.addEventListener('click', async () => {
9204 if (selectedTags.size === 0) {
9205 await window.electron.showMessage('Error', 'Please select tags to delete');
9206 return;
9207 }
9208
9209 const result = await window.electron.showMessageBox({
9210 type: 'warning',
9211 title: 'Delete Tags',
9212 message: `Are you sure you want to delete ${selectedTags.size} tag(s)?`,
9213 buttons: ['Yes', 'No'],

Callers 1

renderer.jsFile · 0.85

Calls 3

normalizeFilePathFunction · 0.85
getFilePathFromModelDataFunction · 0.85
deduplicateModelDataFunction · 0.85

Tested by

no test coverage detected