DEV: Remove after-user-name outlet connector (#639)

d-calendar is now using user-status to display holiday flair, so this wasn't needed (or resulted in duplicated icon, e.g. on group-index)
This commit is contained in:
Jarek Radosz 2024-10-30 12:41:04 +01:00 committed by GitHub
parent 55004c2fe3
commit 82d72f03f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 21 deletions

View File

@ -1 +0,0 @@
<img src={{holidayEmoji}} class="emoji" alt={{holidayEmojiName}} />

View File

@ -1,20 +0,0 @@
import { emojiUrlFor } from "discourse/lib/text";
export default {
shouldRender(args, context) {
return (
context.siteSettings.calendar_enabled &&
context.site.users_on_holiday &&
context.site.users_on_holiday.includes(args.user.username)
);
},
setupComponent(args, component) {
const holidayEmojiName =
this.get("siteSettings.holiday_status_emoji") || "date";
component.setProperties({
holidayEmojiName: `:${holidayEmojiName}:`,
holidayEmoji: emojiUrlFor(holidayEmojiName),
});
},
};