Usé replaceIcon() para reemplazar el icono de certificación por un SVG personalizado. El SVG personalizado se muestra en todas partes excepto en el menú desplegable del usuario.
Don
22 Noviembre, 2024 04:56
2
Hola
Aquí puedes encontrar los reemplazos de iconos
"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",
La API replaceIcon para la notificación de concesión de insignias debería ser:
api.replaceIcon("notification.granted_badge", "CertificateIcon");
4 Me gusta