Closes #190 by ensuring that only inorganic reactions can be exported if desired by having an empty marklist but keeping the "include inorganic reactions?" checkbox selected when exporting. This behaviour is consistent with the previous website.
This PR also includes changes to handle two edge cases better:
If no species are in the marklist and inorganic reactions aren't selected, then an error message is displayed to the user rather than the previous unhelpful HTTP 500 page
If the marklist is updated from the sidebar while the user is on the export page, previously the exported mechanism wouldn't include the new changes. This is now fixed.
Furthermore, the download request has been changed to a GET, since nothing is modified on the server end and the query parameters are not sensitive so they are safe to be transmitted through the URL.
Closes #190 by ensuring that only inorganic reactions can be exported if desired by having an empty marklist but keeping the "include inorganic reactions?" checkbox selected when exporting. This behaviour is consistent with the previous website.
This PR also includes changes to handle two edge cases better:
Furthermore, the download request has been changed to a GET, since nothing is modified on the server end and the query parameters are not sensitive so they are safe to be transmitted through the URL.