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:
parent
55004c2fe3
commit
82d72f03f1
|
|
@ -1 +0,0 @@
|
||||||
<img src={{holidayEmoji}} class="emoji" alt={{holidayEmojiName}} />
|
|
||||||
|
|
@ -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),
|
|
||||||
});
|
|
||||||
},
|
|
||||||
};
|
|
||||||
Loading…
Reference in New Issue