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

Clicking delete prompts warning #9

Open
ari-os310 opened this issue Jun 20, 2020 · 0 comments
Open

Clicking delete prompts warning #9

ari-os310 opened this issue Jun 20, 2020 · 0 comments
Labels
good first issue Good for newcomers

Comments

@ari-os310
Copy link
Owner

The way the delete function is set up right now, someone could accidentally delete an affirmation without first being prompted to confirm. Clicking delete should prompt either an alert or a modal box prompting confirmation of delete action.

This issue intends to:

  • create a modal or alert that asks "Say goodbye to affirmation forever?"

  • Clicking "x" on the affirmation will prompt modal/alert verification

  • Selecting yes will continue with the deletion

  • Selecting no will disappear the alert or modal and do nothing

The delete function currently lives in file AvatarPage.js on lines 19-21.
See here

The delete function is passed down to AffirmationsList.js where it is called.
See here for where it is passed down.
See here for where it is called in AffirmationsList.js

As written in moodify-db-helpers.js, it takes two parameters when called:

  1. affirmation id

  2. function call back

@ari-os310 ari-os310 added the good first issue Good for newcomers label Jun 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant