fix breadcrumb
This commit is contained in:
parent
97ef915944
commit
bd57ad29b9
|
@ -20,9 +20,6 @@ import {
|
|||
TableHeader,
|
||||
TableHead,
|
||||
TableRow,
|
||||
TableBody,
|
||||
TableCell,
|
||||
Row,
|
||||
// @ts-ignore
|
||||
} from '@carbon/react';
|
||||
import { PROCESS_STATUSES, DATE_FORMAT, DATE_FORMAT_CARBON } from '../config';
|
||||
|
|
|
@ -443,9 +443,14 @@ export default function ProcessInstanceShow() {
|
|||
return (
|
||||
<>
|
||||
<ProcessBreadcrumb
|
||||
processModelId={processModelId}
|
||||
processGroupId={params.process_group_id}
|
||||
linkProcessModel
|
||||
hotCrumbs={[
|
||||
['Process Groups', '/admin'],
|
||||
[
|
||||
`Process Model: ${processModelId}`,
|
||||
`process_model:${processModelId}:link`,
|
||||
],
|
||||
[`Process Instance: ${params.process_instance_id}`],
|
||||
]}
|
||||
/>
|
||||
<Stack orientation="horizontal" gap={3}>
|
||||
<h2>Process Instance Id: {processInstanceToUse.id}</h2>
|
||||
|
|
|
@ -684,39 +684,34 @@ export default function ProcessModelEditDiagram() {
|
|||
* fixme: Not currently in use. This would only work for bpmn files within the process model. Which is right for DMN and json, but not right here. Need to merge in work on the nested process groups before tackling this.
|
||||
* @param processId
|
||||
*/
|
||||
|
||||
const fileNameTemplatePath =
|
||||
'/admin/process-models/:process_model_id/files/:file_name';
|
||||
|
||||
const onLaunchBpmnEditor = (processId: string) => {
|
||||
const file = findFileNameForReferenceId(processId, 'bpmn');
|
||||
if (file) {
|
||||
const path = generatePath(
|
||||
'/admin/process-models/:process_model_id/files/:file_name',
|
||||
{
|
||||
process_model_id: params.process_model_id,
|
||||
file_name: file.name,
|
||||
}
|
||||
);
|
||||
const path = generatePath(fileNameTemplatePath, {
|
||||
process_model_id: params.process_model_id,
|
||||
file_name: file.name,
|
||||
});
|
||||
window.open(path);
|
||||
}
|
||||
};
|
||||
const onLaunchJsonEditor = (fileName: string) => {
|
||||
const path = generatePath(
|
||||
'/admin/process-models/:process_model_id/files/:file_name',
|
||||
{
|
||||
process_model_id: params.process_model_id,
|
||||
file_name: fileName,
|
||||
}
|
||||
);
|
||||
const path = generatePath(fileNameTemplatePath, {
|
||||
process_model_id: params.process_model_id,
|
||||
file_name: fileName,
|
||||
});
|
||||
window.open(path);
|
||||
};
|
||||
const onLaunchDmnEditor = (processId: string) => {
|
||||
const file = findFileNameForReferenceId(processId, 'dmn');
|
||||
if (file) {
|
||||
const path = generatePath(
|
||||
'/admin/process-models/:process_model_id/files/:file_name',
|
||||
{
|
||||
process_model_id: params.process_model_id,
|
||||
file_name: file.name,
|
||||
}
|
||||
);
|
||||
const path = generatePath(fileNameTemplatePath, {
|
||||
process_model_id: params.process_model_id,
|
||||
file_name: file.name,
|
||||
});
|
||||
window.open(path);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue