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

Add a prompt if the event is in draft status and the user publishes it #112

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

amieiro
Copy link
Collaborator

@amieiro amieiro commented Feb 19, 2024

If the event is in draft status and the user publishes it, she doesn't get a prompt.

This PR adds this prompt. To test it, you can test two different situations:

  • Test 1:

    • Create a new event.
    • Click on the "Publish Event" button. You will get a prompt with the "Are you sure you want to publish this event?" text.
    • Update the content and click on the "Update Event" button.
  • Test 2:

    • Create a new event.
    • Click on the "Save Draft" button.
    • Update the content and click on the "Update Draft" button.
    • Click on the "Publish Event" button. You will get a prompt with the "Are you sure you want to publish this event?" text.

Fixes #81.

Copy link
Member

@psrpinto psrpinto left a comment

Choose a reason for hiding this comment

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

Tested and it works

@amieiro amieiro merged commit f13e355 into trunk Feb 20, 2024
2 checks passed
@amieiro amieiro deleted the prompt-publish-draft-event branch February 20, 2024 11:43
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.

Don't get a prompt when you publish a draft event
2 participants