mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-22 02:34:05 +08: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 |
||
|---|---|---|
| .. | ||
| flag_reason.rb | ||
| topic_link.rb | ||