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 alert message when a user deletes an investment project from "My activity" #2385

Conversation

iagirre
Copy link

@iagirre iagirre commented Jan 25, 2018

Where

What

Add an alert message when the user clicks delete (a budget_investment) to avoid to removing them accidentally.

How

Add a confirm data attribute to the link to lauch the alert dialog.

Screenshots

investment01

Test

A new scenario was created to test if the dialog works. If the user dismisses the dialog the investment is not delted; if it accepts, it's deleted.

Deployment

Nothing to apply.

Warnings

Nothing to apply.

iagirre added 2 commits January 25, 2018 16:54
@voodoorai2000
Copy link
Member

Awesome 🎉
Thank @iagirre :)

Feel free to include tests in the main commit 👌
A commit should include all necessary parts to make it a complete unit, and tests are part of this ;)

@voodoorai2000 voodoorai2000 merged commit 8bec365 into consuldemocracy:master Feb 13, 2018
@aitbw aitbw deleted the 2363-alert-delete-investment-project branch February 15, 2018 14:20
clairezed pushed a commit to CDJ11/CDJ that referenced this pull request Jun 26, 2018
…elete-investment-project

Add alert message when a user deletes an investment project from "My activity"
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.

Add alert message when a user deletes an investment project from "My activity"
2 participants