J’ai utilisé replaceIcon() pour remplacer l’icône de certification par un SVG personnalisé. Le SVG personnalisé s’affiche partout sauf dans le menu déroulant de l’utilisateur.
Don
Novembre 22, 2024, 4:56
2
Bonjour
Vous trouverez ici les remplacements d’icônes
"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",
L’API replaceIcon pour accorder une notification de badge devrait être :
api.replaceIcon("notification.granted_badge", "CertificateIcon");
4 « J'aime »