Я использовал replaceIcon() для замены иконки сертификата на пользовательский SVG. Пользовательский SVG отображается везде, кроме выпадающего меню пользователя.
Don
22.Ноябрь.2024 04:56:27
2
Привет
Здесь вы можете найти замену иконок
"notification.liked_2": "heart",
"notification.liked_many": "heart",
"notification.liked_consolidated": "heart",
"notification.private_message": "envelope",
"notification.invited_to_private_message": "envelope",
"notification.invited_to_topic": "hand-point-right",
"notification.invitee_accepted": "user",
"notification.moved_post": "right-from-bracket",
"notification.linked": "link",
"notification.linked_consolidated": "link",
"notification.granted_badge": "certificate",
"notification.topic_reminder": "far-clock",
"notification.watching_first_post": "discourse-bell-one",
"notification.group_message_summary": "users",
"notification.post_approved": "check",
"notification.membership_request_accepted": "user-plus",
"notification.membership_request_consolidated": "users",
"notification.reaction": "bell",
"notification.votes_released": "plus",
"notification.chat_quoted": "quote-right",
"user_menu.replies": "reply",
API для замены иконки уведомления о выданном бейдже должно выглядеть так:
api.replaceIcon("notification.granted_badge", "CertificateIcon");