From 212e4f304bd8abbd7ab247fdeeb7d88c1f557e8b Mon Sep 17 00:00:00 2001 From: Michael Chadwick Date: Wed, 21 May 2025 11:38:30 -0700 Subject: [PATCH 1/3] pass selectEvent() method from Controller and turn on event routing --- packages/frontend/app/components/user-profile-calendar.gjs | 3 ++- packages/frontend/app/components/user-profile.gjs | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/frontend/app/components/user-profile-calendar.gjs b/packages/frontend/app/components/user-profile-calendar.gjs index 9a6e831031..dfdb192147 100644 --- a/packages/frontend/app/components/user-profile-calendar.gjs +++ b/packages/frontend/app/components/user-profile-calendar.gjs @@ -104,9 +104,10 @@ export default class UserProfileCalendar extends Component { diff --git a/packages/frontend/app/components/user-profile.gjs b/packages/frontend/app/components/user-profile.gjs index 8ba76f907b..60343e18ea 100644 --- a/packages/frontend/app/components/user-profile.gjs +++ b/packages/frontend/app/components/user-profile.gjs @@ -46,9 +46,9 @@ export default class UserProfileComponent extends Component { @toggle={{@setShowCalendar}} /> -
- {{#if @showCalendar}} - +
+ {{#if this.showCalendar}} + {{/if}} Date: Wed, 21 May 2025 13:40:43 -0700 Subject: [PATCH 2/3] move method to UserProfileCalendar component --- packages/frontend/app/components/user-profile-calendar.gjs | 7 ++++++- packages/frontend/app/components/user-profile.gjs | 6 +++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/packages/frontend/app/components/user-profile-calendar.gjs b/packages/frontend/app/components/user-profile-calendar.gjs index dfdb192147..06dadae91d 100644 --- a/packages/frontend/app/components/user-profile-calendar.gjs +++ b/packages/frontend/app/components/user-profile-calendar.gjs @@ -14,6 +14,7 @@ import { faBackward, faForward } from '@fortawesome/free-solid-svg-icons'; export default class UserProfileCalendar extends Component { @service fetch; + @service router; @service iliosConfig; @service userEvents; @service localeDays; @@ -64,6 +65,10 @@ export default class UserProfileCalendar extends Component { gotoToday() { this.date = new Date(); } + @action + selectEvent(event) { + this.router.transitionTo('events', event.slug); + }