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

Function updateListViewColumnsToolbarButton

renderer.js:14768–14784  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14766
14767 tagSelect.innerHTML = '<option value="">All Tags</option>';
14768
14769 try {
14770 const tags = await window.electron.getAllTags();
14771 tags.sort((a, b) => a.name.localeCompare(b.name)); // Sort tags alphabetically
14772 tags.forEach(tag => {
14773 const option = document.createElement('option');
14774 option.value = tag.name;
14775 option.textContent = `${tag.name} (${tag.model_count})`;
14776 tagSelect.appendChild(option);
14777 });
14778 } catch (error) {
14779 console.error('Error populating tag filter:', error);
14780 }
14781}
14782
14783// Add bulk edit button to the main content area
14784const bulkEditButton = document.createElement('button');
14785bulkEditButton.id = 'bulk-edit-button';
14786bulkEditButton.className = 'bulk-edit-button';
14787bulkEditButton.textContent = 'Edit Selected Models';

Callers 2

renderer.jsFile · 0.85

Calls 1

Tested by

no test coverage detected