ondrej
November 3, 2024, 9:50pm
1
When you make a PM into a topic the icon seems to be missing as you can see in the image below.
This is in the topic admin actions in a PM
3 Likes
Lilly
November 3, 2024, 9:57pm
2
oh itâs there all right, itâs just not showing because of some shenanigans, possibly fontawesome 6 not being awseome⌠lol
Thanks for the heads up!
2 Likes
I just converted this to a PM and back to a topic and it seems the icon appears correctly?
Lilly:
it looks like this is expecting a different icon for some reasonâŚ
edit: looking at the code for small actions, it appears it falls back to âexclamationâ when a matching icon canât be found⌠but the public_topic
does have an icon defined⌠the plot thickens
3 Likes
Firepup650
(Firepup Sixfifty)
November 4, 2024, 6:42pm
7
Iâm not sure thatâs ever worked on our forum, we have many silly posts that were made into actions as a joke, and none of those have icons visible.
1 Like
Moin
December 29, 2024, 1:53pm
8
That happens because Meta is a public site. The action code is different in that case.
There is different text when login required
is enabled.
I think the problem is that while there is an icon for âpublic_topicâ, there is no icon defined for âopen_topicâ.
const icons = {
"closed.enabled": "lock",
"closed.disabled": "unlock-keyhole",
"autoclosed.enabled": "lock",
"autoclosed.disabled": "unlock-keyhole",
"archived.enabled": "folder",
"archived.disabled": "folder-open",
"pinned.enabled": "thumbtack",
"pinned.disabled": "thumbtack unpinned",
"pinned_globally.enabled": "thumbtack",
"pinned_globally.disabled": "thumbtack unpinned",
"banner.enabled": "thumbtack",
"banner.disabled": "thumbtack unpinned",
"visible.enabled": "far-eye",
"visible.disabled": "far-eye-slash",
split_topic: "right-from-bracket",
invited_user: "circle-plus",
invited_group: "circle-plus",
user_left: "circle-minus",
removed_user: "circle-minus",
This file has been truncated. show original
4 Likes
Ah that explains it! thanks for figuring that out
This PR will add the icon:
discourse:main
â discourse:ux-open-topic-action
opened 06:32PM - 06 Jan 25 UTC
Investigated here: https://meta.discourse.org/t/convert-to-topic-icon-missing/33⌠4309/8?u=awesomerobot
When a site is set to `login_required` the small action for converting a PM to a topic is `open_topic` rather than `public_topic` â and there's no icon defined for it. This adds one (the same as `public_topic`).
Before:
![image](https://github.com/user-attachments/assets/cb271177-38af-4d68-a849-8c5a1ffe85cc)
After:
![image](https://github.com/user-attachments/assets/4a8b47e0-b913-423d-81a0-a81c12c0276a)
5 Likes