interface Props {
id: string;
onRowClick: (item: any) => void;
- onContextMenu?: (event: React.MouseEvent<HTMLElement>, item: any) => void;
+ onContextMenu?: (event: React.MouseEvent<HTMLElement>, item: any, isAdmin?: boolean) => void;
onRowDoubleClick: (item: any) => void;
extractKey?: (item: any) => React.Key;
}
const progress = state.progressIndicator.find(p => p.id === id);
const working = progress && progress.working;
const currentRoute = state.router.location ? state.router.location.pathname : '';
- return { ...getDataExplorer(state.dataExplorer, id), working, currentRoute };
+ const currentItemUuid = currentRoute === '/workflows' ? state.properties.workflowPanelDetailsUuid : state.detailsPanel.resourceUuid;
+ return { ...getDataExplorer(state.dataExplorer, id), working, paperKey: currentRoute, currentItemUuid };
};
const mapDispatchToProps = () => {
dispatch(dataExplorerActions.SET_ROWS_PER_PAGE({ id, rowsPerPage }));
},
+ onLoadMore: (page: number) => {
+ dispatch(dataExplorerActions.SET_PAGE({ id, page }));
+ },
+
onRowClick,
onRowDoubleClick,