(resultsCount: number)
| 74 | } |
| 75 | |
| 76 | function getCountText(resultsCount: number): string { |
| 77 | if (currentFilters.tags.length === 0) { |
| 78 | return `${resultsCount} plugin${resultsCount === 1 ? '' : 's'}`; |
| 79 | } |
| 80 | |
| 81 | return `${resultsCount} of ${allItems.length} plugins (filtered by ${currentFilters.tags.length} tag${currentFilters.tags.length === 1 ? '' : 's'})`; |
| 82 | } |
| 83 | |
| 84 | function applyFiltersAndRender(): void { |
| 85 | const countEl = document.getElementById('results-count'); |
no outgoing calls
no test coverage detected