Sha256: 5392f899aa35865c17bda6f05940349c0d1c870928d9d5bdbb69498be7cbbe7f
Contents?: true
Size: 417 Bytes
Versions: 15
Compression:
Stored size: 417 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 alchemy-icon" ) icon.setAttribute("icon-style", active ? "fill" : "line") } } }
Version data entries
15 entries across 15 versions & 1 rubygems