camelcase
This commit is contained in:
parent
c3fe05c698
commit
cbfc347d10
|
@ -14,14 +14,14 @@ import ButtonWithConfirmation from './ButtonWithConfirmation';
|
||||||
type OwnProps = {
|
type OwnProps = {
|
||||||
mode: string;
|
mode: string;
|
||||||
processModel: ProcessModel;
|
processModel: ProcessModel;
|
||||||
process_group_id?: string;
|
processGroupId?: string;
|
||||||
setProcessModel: (..._args: any[]) => any;
|
setProcessModel: (..._args: any[]) => any;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function ProcessModelForm({
|
export default function ProcessModelForm({
|
||||||
mode,
|
mode,
|
||||||
processModel,
|
processModel,
|
||||||
process_group_id,
|
processGroupId,
|
||||||
setProcessModel,
|
setProcessModel,
|
||||||
}: OwnProps) {
|
}: OwnProps) {
|
||||||
const [identifierInvalid, setIdentifierInvalid] = useState<boolean>(false);
|
const [identifierInvalid, setIdentifierInvalid] = useState<boolean>(false);
|
||||||
|
@ -88,7 +88,7 @@ export default function ProcessModelForm({
|
||||||
};
|
};
|
||||||
if (mode === 'new') {
|
if (mode === 'new') {
|
||||||
Object.assign(postBody, {
|
Object.assign(postBody, {
|
||||||
id: `${process_group_id}/${processModel.id}`,
|
id: `${processGroupId}/${processModel.id}`,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ export default function ProcessModelEdit() {
|
||||||
<h2>Edit Process Model: {(processModel as any).id}</h2>
|
<h2>Edit Process Model: {(processModel as any).id}</h2>
|
||||||
<ProcessModelForm
|
<ProcessModelForm
|
||||||
mode="edit"
|
mode="edit"
|
||||||
process_group_id={params.process_group_id}
|
processGroupId={params.process_group_id}
|
||||||
processModel={processModel}
|
processModel={processModel}
|
||||||
setProcessModel={setProcessModel}
|
setProcessModel={setProcessModel}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -20,7 +20,7 @@ export default function ProcessModelNew() {
|
||||||
<h2>Add Process Model</h2>
|
<h2>Add Process Model</h2>
|
||||||
<ProcessModelForm
|
<ProcessModelForm
|
||||||
mode="new"
|
mode="new"
|
||||||
process_group_id={params.process_group_id}
|
processGroupId={params.process_group_id}
|
||||||
processModel={processModel}
|
processModel={processModel}
|
||||||
setProcessModel={setProcessModel}
|
setProcessModel={setProcessModel}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -145,6 +145,9 @@ export default function ReactFormEditor() {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const processModelFilePossibleNameString = processModelFile
|
||||||
|
? (processModelFile as any).name
|
||||||
|
: '';
|
||||||
if (processModelFile || !params.file_name) {
|
if (processModelFile || !params.file_name) {
|
||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
|
@ -158,7 +161,7 @@ export default function ReactFormEditor() {
|
||||||
`Process Model: ${params.process_model_id}`,
|
`Process Model: ${params.process_model_id}`,
|
||||||
`process_model:${params.process_model_id}:link`,
|
`process_model:${params.process_model_id}:link`,
|
||||||
],
|
],
|
||||||
[(processModelFile as any).name || ''],
|
[processModelFilePossibleNameString],
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
<h2>
|
<h2>
|
||||||
|
|
Loading…
Reference in New Issue