Skip to content

Commit

Permalink
WIP load old extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
PKuhlmay committed Apr 8, 2024
1 parent 62ad2ce commit e7097af
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Build/Sources/components/ReactFlow/CustomModelNode.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export const CustomModelNode = (props) => {
// TODO: create a default property inside an empty js file and set it her.
const addEmptyProperty = () => {
setProperties([...properties, {
name: '',
type: '',
description: '',
propertyName: '',
propertyType: '',
propertyDescription: '',
isRequired: false,
isNullable: false,
isExcludeField: false,
Expand Down Expand Up @@ -73,9 +73,9 @@ export const CustomModelNode = (props) => {
}]);
props.data.properties.push(
{
name: '',
type: '',
description: '',
propertyName: '',
propertyType: '',
propertyDescription: '',
isRequired: false,
isNullable: false,
excludeField: false,
Expand Down Expand Up @@ -460,7 +460,7 @@ export const CustomModelNode = (props) => {
props.data.properties.map((property, index) => {
return (
<TYPO3StyledAccordion
title={`${property.name} ${property.type ? `(${property.type})` : ''}`}
title={`${property.propertyName} ${property.propertyType ? `(${property.propertyType})` : ''}`}
id={`nodeProperty-${props.id}-${index}`}
parentId="accordionCustomModelNodeProperties"
>
Expand All @@ -469,18 +469,18 @@ export const CustomModelNode = (props) => {
label="Property name"
placeholder="Property name"
identifier="propertyName"
initialValue={property.name}
initialValue={property.propertyName}
onChange={(value) => {
updateProperty(index, "name", value.toLowerCase());
updateProperty(index, "propertyName", value.toLowerCase());
}}
/>
<SelectComponent
label="Property type"
identifier="propertyType"
options={propertyTypes}
initialValue={property.type}
initialValue={property.propertyType}
onChange={(value) => {
updateProperty(index, "type", value);
updateProperty(index, "propertyType", value);
}}
/>
{property.type === 'Text' &&(<CheckboxComponent
Expand Down Expand Up @@ -690,9 +690,9 @@ export const CustomModelNode = (props) => {
label="Property description"
placeholder="Property description"
identifier="propertyDescription"
initialValue={property.description}
initialValue={property.propertyDescription}
onChange={(value) => {
updateProperty(index, "description", value);
updateProperty(index, "propertyDescription", value);
}}
/>
<CheckboxComponent
Expand Down

0 comments on commit e7097af

Please sign in to comment.