17098: Refactors context menu's kind decision function.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Mon, 23 Nov 2020 22:22:22 +0000 (19:22 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Mon, 23 Nov 2020 22:22:22 +0000 (19:22 -0300)
commit4aba4d31b34af60e7cb21b1088723aced0699a69
treefe54ec2c1a21f6872f20f7bf9d297047a137c0c5
parent2e601562bda766fb2ac58e7dbd6a696e6c2371b1
17098: Refactors context menu's kind decision function.

Over time, the function got several optional arguments that were mostly
intrinsic of the resource being queried, or the user type. This produced lot
of duplicated and error prone code on the caller's side.
Now, all callers only need to provide a uuid, the will get the same result.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>
src/store/context-menu/context-menu-actions.ts
src/views/collection-content-address-panel/collection-content-address-panel.tsx
src/views/collection-panel/collection-panel.tsx
src/views/favorite-panel/favorite-panel.tsx
src/views/link-panel/link-panel.tsx
src/views/project-panel/project-panel.tsx
src/views/public-favorites-panel/public-favorites-panel.tsx
src/views/shared-with-me-panel/shared-with-me-panel.tsx