Usei replaceIcon() para trocar a certificação por um SVG personalizado. O SVG personalizado aparece em todos os lugares, exceto no menu suspenso do usuário.
Don
Novembro 22, 2024, 4:56am
2
Olá
Aqui você pode encontrar as substituições de ícones
"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",
A API replaceIcon para conceder notificações de distintivo deve ser:
api.replaceIcon("notification.granted_badge", "CertificateIcon");
4 curtidas