mountetna / timur

Data browser for biologists
GNU General Public License v2.0
3 stars 6 forks source link

Attribute selection state #268

Closed coleshaw closed 4 years ago

coleshaw commented 4 years ago

This PR provides an action to set the attributes value used in Timur Search requests to the Magma /retrieve API. It replaces the values used in the current search and tsv buttons to use the attributes from state, instead of the hardcoded all. This hook should enable new UI components from @corps that set different attributes values.

This also adds a spinner to display on the Search screen while fetching data, and disables the buttons while fetching to prevent multiple requests. This kind of UI delay could be seen when making a longer-lasting request, like samples with page size of 200.

Note that these changes should result in the same current behaviour -- no new / different functionality is expected.