Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: View Event Button not disabling when event date has passed #860

Closed
2 tasks done
gurjeetsinghvirdee opened this issue Apr 5, 2024 · 1 comment · Fixed by #924
Closed
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@gurjeetsinghvirdee
Copy link

gurjeetsinghvirdee commented Apr 5, 2024

👟 Reproduction steps

  • We need to add logic to determine whether the event date has passed. This can be done by comparing the event date with the current date.
  • Depending on whether the event has completed or not, we need to update the state of the button accordingly. If the event has completed, the button should be disabled and labeled as Event Completed. Otherwise, it should remain enabled with the label View Event.
  • We'll make the necessary changes to the EventCard.svelte component to incorporate the logic.

👍 Expected behavior

The button should be disabled and labeled Event Completed if the event date has passed.

👎 Actual Behavior

Currently, in the event card component, the button intended to be disabled and labeled Event Completed if the event date has passed is not functioning as expected. Despite the event date being hardcoded and already passed, the button still displays View Event and remains enabled.

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Windows

🧱 Your Environment

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@gurjeetsinghvirdee gurjeetsinghvirdee added the bug Something isn't working label Apr 5, 2024
@gewenyu99 gewenyu99 self-assigned this Apr 25, 2024
@gewenyu99
Copy link
Contributor

PR: #924

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants