프로필 이미지 내비게이션 항목을 담당하는 위젯이 "user-dropdown"인 것 같아서 수정을 시도하고 있지만, 이미지가 어디서 할당되는지 찾을 수가 없어요. 여기까지 진행했습니다.
도움이 필요해요.
<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>