18972: Records the last refresh click on localStorage for others to act on.
authorLucas Di Pentima <lucas.dipentima@curii.com>
Tue, 12 Apr 2022 14:32:41 +0000 (11:32 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Tue, 12 Apr 2022 19:30:06 +0000 (16:30 -0300)
commit139421ac9ab6a7f60ad7762d1787d79533ce6831
tree68aa1e92633b874fe9389373c558b948deb849fb
parent3dd4b3bc31fea7f614290131d0ade5c0e0ffc595
18972: Records the last refresh click on localStorage for others to act on.

Adding timestamps on the store isn't recommended as the reducers should be
only pure functions so I opted to use the localStorage for this application.
The DataExplorer code now also checks if the last Refresh button click
timestamp changed to decide if it should show the "loading, please wait"
message.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>
src/components/refresh-button/refresh-button.test.tsx
src/components/refresh-button/refresh-button.tsx
src/views-components/data-explorer/data-explorer.tsx
src/views-components/main-content-bar/main-content-bar.tsx