Skip to content

fix: update empty-state event button label for users with past events#412

Merged
tompscanlan merged 1 commit into
OpenMeet-Team:mainfrom
Tharunraja7:fix/409-update-empty-state-event-label
May 28, 2026
Merged

fix: update empty-state event button label for users with past events#412
tompscanlan merged 1 commit into
OpenMeet-Team:mainfrom
Tharunraja7:fix/409-update-empty-state-event-label

Conversation

@Tharunraja7

Copy link
Copy Markdown
Contributor

Fix for "Create your first event" label shown for users with past events (#409)

Updated the empty state logic in DashboardEventsPage.vue to display the correct button label based on whether the user has past events.

Changed the button label from a static value to a computed property.

Added a computed check for past events using summary.counts.past.

Before fix:

  • Button always showed "Create your first event"

After fix:

  • Shows "Create your first event" when there are no past events
  • Shows "Create a new event" when past events exist

Closes #409

Before fix :
image

After fix :
image

@tompscanlan tompscanlan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code reviewed: types verified (DashboardEventCounts.past exists), NoContentComponent accepts buttonLabel prop, computed logic is correct. Clean single-file change.

@tompscanlan tompscanlan merged commit f5f6f0e into OpenMeet-Team:main May 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Create your first event" after created events

2 participants