marleymarl / geotimeline

12 stars 10 forks source link

Add Button to 'Save and Exit' Below Table and Next to 'Save to CSV' #30

Closed marleymarl closed 4 years ago

marleymarl commented 4 years ago

I'll have the API URL in a sec and will post below. OnClick of the button it should post to the API url as JSON an array of footprint objects representing a timeline, with following keys in each object:

After posting it should redirect the user to UpFrontForm (and return patientId to '' in order to show the form). Ultimately we we will want to redirect them to a /dataview route using react-router (dataview being part of DATA project in AirTable) but since that is not ready yet, this is an in-between step.