mirror of
https://github.com/discourse/discourse.git
synced 2026-08-08 12:08:12 -05:00
This adds some new icon aliases so the lock icon can be overridden in specific scenarios without applying globally to all locks: * "topic.closed" * "topic.opened" * "category.restricted" This enables customizations like:  ``` import { apiInitializer } from "discourse/lib/api"; export default apiInitializer((api) => { api.replaceIcon("topic.closed", "xmark"); api.replaceIcon("category.restricted", "shield-halved"); }); ``` More documentation on this feature in https://meta.discourse.org/t/change-icons-globally/87751