diff --git a/assets/javascripts/discourse/components/discourse-post-event/dates.gjs b/assets/javascripts/discourse/components/discourse-post-event/dates.gjs index 2fde3e7e0..00a43df75 100644 --- a/assets/javascripts/discourse/components/discourse-post-event/dates.gjs +++ b/assets/javascripts/discourse/components/discourse-post-event/dates.gjs @@ -7,6 +7,7 @@ import { service } from "@ember/service"; import { htmlSafe } from "@ember/template"; import { applyLocalDates } from "discourse/lib/local-dates"; import { cook } from "discourse/lib/text"; +import icon from "discourse-common/helpers/d-icon"; import guessDateFormat from "../../lib/guess-best-date-format"; export default class DiscoursePostEventDates extends Component { @@ -76,9 +77,7 @@ export default class DiscoursePostEventDates extends Component { } } diff --git a/assets/javascripts/discourse/components/discourse-post-event/index.gjs b/assets/javascripts/discourse/components/discourse-post-event/index.gjs index 1c8c9e649..24ce64a91 100644 --- a/assets/javascripts/discourse/components/discourse-post-event/index.gjs +++ b/assets/javascripts/discourse/components/discourse-post-event/index.gjs @@ -67,6 +67,10 @@ export default class DiscoursePostEvent extends Component { return this.currentUser && this.args.event.can_act_on_discourse_post_event; } + get watchingInviteeStatus() { + return this.args.event.watchingInvitee?.status; + } +