I tried to replace the envelope
icon with the inbox
icon, but the changes are not applied to the icons inside the user menu panel. Do they have to be targeted in a specific way?
My snippet:
// {theme}/javascripts/discourse/api-initializers/init-theme.gjs
import { apiInitializer } from "discourse/lib/api";
export default apiInitializer((api) => {
api.replaceIcon("envelope", "inbox");
});