From d9c7613b436dad495a2b5a3d06b58c5cd5ef9592 Mon Sep 17 00:00:00 2001 From: Janicki Artur Date: Thu, 22 Nov 2018 13:49:33 +0100 Subject: [PATCH] refs #14525 fix breadcamps and workflow share icon Arvados-DCO-1.1-Signed-off-by: Janicki Artur --- .../run-process-panel-actions.ts | 2 ++ .../data-explorer/renderers.tsx | 19 +++++++++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/store/run-process-panel/run-process-panel-actions.ts b/src/store/run-process-panel/run-process-panel-actions.ts index a21f7c04..f1d2d2fd 100644 --- a/src/store/run-process-panel/run-process-panel-actions.ts +++ b/src/store/run-process-panel/run-process-panel-actions.ts @@ -17,6 +17,7 @@ import { navigateToProcess } from '../navigation/navigation-action'; import { RunProcessAdvancedFormData, RUN_PROCESS_ADVANCED_FORM } from '~/views/run-process-panel/run-process-advanced-form'; import { isItemNotInProject, isProjectOrRunProcessRoute } from '~/store/projects/project-create-actions'; import { dialogActions } from '~/store/dialog/dialog-actions'; +import { setBreadcrumbs } from '~/store/breadcrumbs/breadcrumbs-actions'; export const runProcessPanelActions = unionize({ SET_PROCESS_OWNER_UUID: ofType(), @@ -41,6 +42,7 @@ export type RunProcessPanelAction = UnionOf; export const loadRunProcessPanel = () => async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => { try { + dispatch(setBreadcrumbs([{ label: 'Run Process' }])); dispatch(runProcessPanelActions.RESET_RUN_PROCESS_PANEL()); const response = await services.workflowService.list(); dispatch(runProcessPanelActions.SET_WORKFLOWS(response.items)); diff --git a/src/views-components/data-explorer/renderers.tsx b/src/views-components/data-explorer/renderers.tsx index 6e25508d..c8c64280 100644 --- a/src/views-components/data-explorer/renderers.tsx +++ b/src/views-components/data-explorer/renderers.tsx @@ -86,13 +86,20 @@ const getPublicUuid = (uuidPrefix: string) => { return `${uuidPrefix}-tpzed-anonymouspublic`; }; -// do share onClick +// ToDo: share onClick export const resourceShare = (uuidPrefix: string, ownerUuid?: string) => { - return - undefined}> - {ownerUuid === getPublicUuid(uuidPrefix) ? : null} - - ; + const isPublic = ownerUuid === getPublicUuid(uuidPrefix); + return ( +
+ { isPublic && + + undefined}> + + + + } +
+ ); }; export const ResourceShare = connect( -- 2.30.2