16848: Synchronizes auto-logout between different windows/tabs.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Fri, 12 Feb 2021 22:54:41 +0000 (19:54 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Fri, 12 Feb 2021 22:54:41 +0000 (19:54 -0300)
commit5f272aec410b2b1dce368c36570c6c786aefbd71
tree2bc43bfee80e464470d04e53d30f432ab1e724ec
parentabe391c9f3a2a7ad954ecf81198268076b233ef8
16848: Synchronizes auto-logout between different windows/tabs.

On user action, a localStorage key is updated with the timestamp. The other
windows/tabs of the same app receive the change event and reset the idle
timer accordingly.
There's some event debouncing going on so there's a 1 sec delay between
the active window/tab and the rest.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>
src/views-components/auto-logout/auto-logout.tsx