[ARVADOS-WORKBENCH2] updated: 1.3.1-445-gb9f3c31e
Git user
git at public.curoverse.com
Tue Apr 30 08:23:10 UTC 2019
Summary of changes:
src/store/context-menu/context-menu-actions.ts | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
via b9f3c31e7de7f241ef69a472c0047f125bf06875 (commit)
from a98cdda09b8b1af818113840499e2901730e615d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit b9f3c31e7de7f241ef69a472c0047f125bf06875
Author: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
Date: Tue Apr 30 10:22:57 2019 +0200
refs #15120-adding-to-public-favs-from-side-panel
Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
diff --git a/src/store/context-menu/context-menu-actions.ts b/src/store/context-menu/context-menu-actions.ts
index b21ca0a7..431d15e8 100644
--- a/src/store/context-menu/context-menu-actions.ts
+++ b/src/store/context-menu/context-menu-actions.ts
@@ -152,12 +152,13 @@ export const openRootProjectContextMenu = (event: React.MouseEvent<HTMLElement>,
export const openProjectContextMenu = (event: React.MouseEvent<HTMLElement>, projectUuid: string) =>
(dispatch: Dispatch, getState: () => RootState) => {
const res = getResource<ProjectResource>(projectUuid)(getState().resources);
+ const isAdmin = getState().auth.user!.isAdmin;
if (res) {
dispatch<any>(openContextMenu(event, {
name: res.name,
uuid: res.uuid,
kind: res.kind,
- menuKind: ContextMenuKind.PROJECT,
+ menuKind: !isAdmin ? ContextMenuKind.PROJECT : ContextMenuKind.PROJECT_ADMIN,
ownerUuid: res.ownerUuid,
isTrashed: res.isTrashed
}));
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list