aliguan / yelp-back

0 stars 1 forks source link

Allow user to remove certain events/restaurants from the analysis and allow them to edit the cost #42

Open tventures02 opened 6 years ago

tventures02 commented 6 years ago

ie eventbrite event 1 always shows up and user no longer wants that in the results. capability to remove that single event may be useful

tventures02 commented 6 years ago

partial solution 1: allow the user to edit the cost in the resulting itinerary (ie have the costs show up as an edittable input). write a function for onchange/handlechange that will update the data.data (the big object of api call data). Updating the data.data: https://stackoverflow.com/questions/10557486/in-an-array-of-objects-fastest-way-to-find-the-index-of-an-object-whose-attribu or https://stackoverflow.com/questions/13964155/get-javascript-object-from-array-of-objects-by-value-of-property or https://stackoverflow.com/questions/12462318/find-a-value-in-an-array-of-objects-in-javascript

solution 2: have a separate tab that lists all the api data and allow the data to be edited from there.