Lilly
(Lillian )
30.Август.2026 03:05:02
9
Этот компонент был обновлён для использования нового типа настройки объекта иконки, поэтому, пожалуйста, обновите его после перехода на последнюю версию Discourse. Миграция пройдёт бесшовно, так что вам не нужно будет ничего менять (при условии, что ваш Discourse актуален).
main ← feature/objects-icon-property
merged 02:08PM - 21 Aug 26 UTC
Follow-up to #42626.
Previously, the `icon` setting type was only available a… s a top-level site/theme setting type — properties inside an `objects` setting schema could not use it, and icon names stored in objects values were never added to the SVG sprite sheet.
This change allows `objects` type site and theme settings to declare schema properties with `type: icon`, rendering the icon grid picker in the schema editor and automatically including the selected icons (nested `objects` included) in the sprite sheet.
Note one adjacent change: sprite cache invalidation in `014-track-setting-changes.rb` was gated on the setting *name* containing `_icon`, so changing an `icon` or `objects` typed site setting left a stale sprite. It now also expires for those types, which fixes that latent gap for top-level `icon` site settings from 802fa4c3562 as well.
Example:
```yaml
Example:
type: objects
default: ""
schema:
name: link
identifier: title
properties:
title:
type: string
required: true
icon:
type: icon
````
2 лайка