(direction, event)
| 19326 | |
| 19327 | ratingWrap.appendChild(star); |
| 19328 | } |
| 19329 | |
| 19330 | const favBtn = document.createElement('button'); |
| 19331 | favBtn.type = 'button'; |
| 19332 | favBtn.className = 'model-favorite-btn'; |
| 19333 | favBtn.setAttribute('aria-pressed', favorite ? 'true' : 'false'); |
| 19334 | favBtn.title = groupMode ? 'Favorite all models in group' : 'Favorite'; |
| 19335 | favBtn.textContent = favorite ? '♥' : '♡'; |
| 19336 | |
| 19337 | favBtn.addEventListener('click', async (e) => { |
| 19338 | e.preventDefault(); |
| 19339 | e.stopPropagation(); |
| 19340 | const newFavorite = !favorite; |
| 19341 | if (groupMode) { |
no test coverage detected