nathank
(Nathan Kershaw)
10.Июнь.2026 01:02:13
1
В последних (превосходных) обновлениях для Discourse Calendar and Events была упущена небольшая регрессия.
При закрытой боковой панели всё выглядит нормально (также на мобильных устройствах):
Однако в боковой панели текст возвращается к значению New Topic. К счастью, функциональность (открытие события) сохранена, так что это чисто косметическая проблема:
2 лайка
chapoi
10.Июнь.2026 09:27:08
2
Ах, спасибо за отчёт, действительно, это было упущение.
Должно быть исправлено здесь:
main ← horizon-sidebar-btn-extension
opened 09:27AM - 10 Jun 26 UTC
Previously, the new topic button in the Horizon theme's sidebar hardcoded its la… bel 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" />