0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/themes/horizon/javascripts
chapoi 28d4adf0db
FIX: Horizon > Apply create-topic-label transformer to Horizon sidebar button (#40730)
Previously, the new topic button in the Horizon theme's sidebar
hardcoded its label and icon, so plugins like
discourse-calendar could not relabel it (e.g. to "New Event" in an
events category) even though the button outside the sidebar updated
correctly.
  
This change runs the label and icon through the `create-topic-label` and
`create-topic-icon` value transformers,
matching core's `d-navigation` behaviour so plugin overrides apply in
the sidebar too.

Since this button can now have two states, the icon is brought back to
improve quick-glance clarity.

<img width="1519" height="807" alt="CleanShot 2026-06-10 at 12 11 12"
src="https://github.com/user-attachments/assets/1c1e79fb-d509-40a7-b385-9e3efebf3d09"
/>
2026-06-10 12:12:28 +02:00
..
discourse FIX: Horizon > Apply create-topic-label transformer to Horizon sidebar button (#40730) 2026-06-10 12:12:28 +02:00
.gitkeep FIX: import Horizon system theme (#33229) 2025-06-17 14:03:38 +08:00