I believe the widget that is responsible for the profile image nav item is “user-dropdown”, so I am trying to modify it but I do not see where the image are being assigned. here is as far as I went.
any help is appreciated.
<script type="text/discourse-plugin" version="0.8">
const h = require("virtual-dom").h;
api.reopenWidget("user-dropdown", {
html(attrs) {
console.log(attrs);
return h(
"a.icon",
{
attributes: {
href: 'attrs.user.get("path")',
"data-auto-route": true
}
},
this.attach("header-notifications", attrs)
);
}
});
</script>