Krzysztof Kotlarek
4929288bdd
FIX: delay custom section reorder ( #20799 )
...
Reorder should start after 300ms.
In addition, pointer events should be blocked to not open link after reorder is finished.
2023-03-24 13:58:05 +11:00
Alan Guo Xiang Tan
2d46824a87
DEV: Switch to data attributes to represent sidebar section name ( #20771 )
...
Data attributes are less restrictive than the class attribute.
2023-03-23 13:09:45 +08:00
Krzysztof Kotlarek
1859025228
FIX: my links in sidebar section ( #20754 )
...
Links like `/my/preferences` were invalid in custom section. The reason is that `/my` links are just redirects from backend, and they are not recognized as valid Ember paths.
https://github.com/discourse/discourse/blob/main/config/routes.rb#L433
Therefore, regex match allowlist was added - similar to backend check:
https://github.com/discourse/discourse/blob/main/app/controllers/users_controller.rb#L471
/safe-mode is same case
2023-03-21 15:58:42 +11:00
Krzysztof Kotlarek
db74e9484b
FEATURE: ability to reorder links in custom sidebar sections ( #20626 )
...
Drag and drop to reorder custom sidebar sections
2023-03-21 12:23:28 +11:00
Krzysztof Kotlarek
a16ea24461
FEATURE: allow external links in custom sidebar sections ( #20503 )
...
Originally, only Discourse site links were available. After feedback, it was decided to extend this feature to external URLs.
/t/93491
2023-03-07 11:47:18 +11:00
Krzysztof Kotlarek
b9d037770c
DEV: configurable public sidebar sections ( #20303 )
...
Extension of https://github.com/discourse/discourse/pull/20057
Admin can create a public session visible to everyone. An additional checkbox is displayed for staff members.
2023-02-22 08:55:44 +11:00
Krzysztof Kotlarek
ca7131648f
FIX: edit custom section title ( #20258 )
...
When custom section is edited, it should say "Edit custom section" instead of "Add custom section"
2023-02-14 10:24:45 +11:00
Krzysztof Kotlarek
84a87a703c
DEV: configurable custom sidebar sections ( #20057 )
...
Allows users to configure their own custom sidebar sections with links withing Discourse instance. Links can be passed as relative path, for example "/tags" or full URL.
Only path is saved in DB, so when Discourse domain is changed, links will be still valid.
Feature is hidden behind SiteSetting.enable_custom_sidebar_sections. This hidden setting determines the group which members have access to this new feature.
2023-02-03 14:44:40 +11:00