diff --git a/spiffworkflow-frontend/src/routes/ProcessModelEditDiagram.tsx b/spiffworkflow-frontend/src/routes/ProcessModelEditDiagram.tsx index 85668d45..e93be421 100644 --- a/spiffworkflow-frontend/src/routes/ProcessModelEditDiagram.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessModelEditDiagram.tsx @@ -640,21 +640,13 @@ export default function ProcessModelEditDiagram() { const markdownEditor = () => { return ( - - Edit Markdown Content - - - - - - - + ); }; @@ -684,33 +676,41 @@ export default function ProcessModelEditDiagram() { * @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(fileNameTemplatePath, { - process_model_id: params.process_model_id, - file_name: file.name, - }); + const path = generatePath( + '/admin/process-models/:process_model_id/files/:file_name', + { + process_model_id: params.process_model_id, + file_name: file.name, + } + ); window.open(path); } }; const onLaunchJsonEditor = (fileName: string) => { - const path = generatePath(fileNameTemplatePath, { - process_model_id: params.process_model_id, - file_name: fileName, - }); + const path = generatePath( + '/admin/process-models/:process_model_id/form/:file_name', + { + 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(fileNameTemplatePath, { - process_model_id: params.process_model_id, - file_name: file.name, - }); + const path = generatePath( + '/admin/process-models/:process_model_id/files/:file_name', + { + process_model_id: params.process_model_id, + file_name: file.name, + } + ); window.open(path); } };