Skip to content

Clicking delete prompts warning #9

@ari-os310

Description

@ari-os310

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions