As a user, I should be to update news articles on my dashboard
Acceptance Criteria
GIVEN a user wants to update a news article
WHEN the user clicks the edit button
THEN the existing article should be replaced with a collection of input fields
AND all the information for the article should pre-populate in the form
AND after the user edits the information and pushes a 'Save Article' button the data should update in firebase and be updated on the page
Development
Create edit button with event listener
Make the text editable using isEditable class or a pre-populated text entry field
Create a save button that runs a function that updates the object in firebase and prints the updated object to DOM
Create a cancel button that doesn't save any changes and reverts to the original text of the article
Neither the edit nor the delete button should be shown while the article is in edit mode
User Story
As a user, I should be to update news articles on my dashboard
Acceptance Criteria
GIVEN a user wants to update a news article WHEN the user clicks the edit button THEN the existing article should be replaced with a collection of input fields AND all the information for the article should pre-populate in the form AND after the user edits the information and pushes a 'Save Article' button the data should update in firebase and be updated on the page
Development