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

(Delete) Airport Collection Delete Item #15

Open
MarkyAaronYoung opened this issue Jul 14, 2020 · 2 comments
Open

(Delete) Airport Collection Delete Item #15

MarkyAaronYoung opened this issue Jul 14, 2020 · 2 comments
Assignees

Comments

@MarkyAaronYoung
Copy link
Contributor

MarkyAaronYoung commented Jul 14, 2020

User Story

As a user, I should be able to delete items on the menu.

AC

WHEN a user is logged in
AND is on the airport page
THEN they will see a delete button on each airport
AND when clicked it'll remove the airport locally
AND when clicked it'll remove the airport from firebase

Dev Notes

  • Create a airport collection div
  • Addclass.hide unless the user is logged in
  • Create deleteAirport() -- src/javascripts/components/deleteAirport/deleteAirport.js
  • $('body'). on('click', '.delete-airport', deleteAirport)
  • Use axios.delete() to remove food from firebase. -- src/javascripts/helpers/data/airportData.js
@MarkyAaronYoung
Copy link
Contributor Author

Screen Shot 2020-07-14 at 6 52 55 PM

@luketlancaster
Copy link
Member

how do I know which item is deleted? Like is there an id stored somewhere you'll use for that?

@MarkyAaronYoung MarkyAaronYoung changed the title Airport Collection Delete Item (Delete) Airport Collection Delete Item Jul 16, 2020
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

No branches or pull requests

2 participants