Sha256: 6b0532407b4216f06949a908b39c5099fd05ef79c3c65232892cb5b624f0ae1e
Contents?: true
Size: 491 Bytes
Versions: 32
Compression:
Stored size: 491 Bytes
Contents
export default class IngredientAnchorLink { static updateIcon(ingredientId, active = false) { const ingredientEditor = document.querySelector( `[data-ingredient-id="${ingredientId}"]` ) if (ingredientEditor) { const icon = ingredientEditor.querySelector( ".edit-ingredient-anchor-link > a > .icon" ) if (icon) { active ? icon.classList.replace("far", "fas") : icon.classList.replace("fas", "far") } } } }
Version data entries
32 entries across 32 versions & 1 rubygems