From be7751fcae961e89879be0808b1129bb1d0a53db Mon Sep 17 00:00:00 2001 From: Jordan Vidrine Date: Fri, 8 Nov 2024 12:42:39 -0600 Subject: [PATCH 1/7] more --- .../discourse-post-event/status.gjs | 14 +- .../components/modal/post-event-builder.hbs | 4 +- .../components/modal/post-event-builder.js | 2 +- .../models/discourse-post-event-event.js | 1 + .../common/discourse-post-event.scss | 173 ++++++++++++------ spec/system/post_event_spec.rb | 33 ++++ 6 files changed, 163 insertions(+), 64 deletions(-) diff --git a/assets/javascripts/discourse/components/discourse-post-event/status.gjs b/assets/javascripts/discourse/components/discourse-post-event/status.gjs index 056177769..b09deacb9 100644 --- a/assets/javascripts/discourse/components/discourse-post-event/status.gjs +++ b/assets/javascripts/discourse/components/discourse-post-event/status.gjs @@ -12,10 +12,6 @@ export default class DiscoursePostEventStatus extends Component { @service discoursePostEventApi; @service siteSettings; - get watchingInviteeStatus() { - return this.args.event.watchingInvitee?.status; - } - get eventButtons() { return this.siteSettings.event_participation_buttons.split("|"); } @@ -36,6 +32,10 @@ export default class DiscoursePostEventStatus extends Component { return this.args.event.watchingInvitee && this.args.event.isPublic; } + get watchingInviteeStatus() { + return this.args.event.watchingInvitee?.status; + } + @action async leaveEvent() { try { @@ -107,9 +107,9 @@ export default class DiscoursePostEventStatus extends Component { } } diff --git a/assets/javascripts/discourse/components/modal/post-event-builder.hbs b/assets/javascripts/discourse/components/modal/post-event-builder.hbs index 8db863c13..c18b0c75f 100644 --- a/assets/javascripts/discourse/components/modal/post-event-builder.hbs +++ b/assets/javascripts/discourse/components/modal/post-event-builder.hbs @@ -123,7 +123,7 @@ @@ -232,7 +232,7 @@ Date: Fri, 8 Nov 2024 13:13:18 -0600 Subject: [PATCH 2/7] more --- .../components/discourse-post-event/index.gjs | 14 +++++++------ .../discourse-post-event/invitees.gjs | 21 ++++++++++++++----- .../discourse-post-event/status.gjs | 14 ++++++------- 3 files changed, 31 insertions(+), 18 deletions(-) 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; + } +