16439: Enables the +NEW button only when the user's view is writable.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Mon, 1 Jun 2020 21:30:19 +0000 (18:30 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Mon, 1 Jun 2020 21:33:56 +0000 (18:33 -0300)
commit4dc0af70795f76fc89eba414199cf4145f276b88
treeaa89bfdc1ae41a48d58185a93e3b03d2c31ee218
parent3d1c23fe4f88c28a66ea1f4c5a730c37ecbe58bd
16439: Enables the +NEW button only when the user's view is writable.

Also, makes the SidePanelButton component to not depend on a state property
set by a something rendered later, because that makes the button being
re-renderered at least twice on every location change, instead try to get the
current item id from the location url.

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