You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ma...@apache.org on 2023/08/25 21:54:05 UTC

[camel-karavan] 02/03: Fixed issue with RouteDesigner top/left #836

This is an automated email from the ASF dual-hosted git repository.

marat pushed a commit to branch feature-836
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git

commit 1b230441e76cf142e0e48ff3300c6c8d81ece4e6
Author: Marat Gubaidullin <ma...@talismancloud.io>
AuthorDate: Thu Aug 24 20:06:17 2023 -0400

    Fixed issue with RouteDesigner top/left #836
---
 karavan-designer/src/designer/route/RouteDesigner.tsx             | 3 ++-
 karavan-designer/src/designer/route/property/DslPropertyField.tsx | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/karavan-designer/src/designer/route/RouteDesigner.tsx b/karavan-designer/src/designer/route/RouteDesigner.tsx
index 8614418c..97e8257a 100644
--- a/karavan-designer/src/designer/route/RouteDesigner.tsx
+++ b/karavan-designer/src/designer/route/RouteDesigner.tsx
@@ -49,7 +49,8 @@ export const RouteDesigner = () => {
     const {openSelector, createRouteConfiguration, onCommand, handleKeyDown, handleKeyUp, unselectElement} = useRouteDesignerHook();
 
     const [integration] = useIntegrationStore((state) => [state.integration], shallow)
-    const [showDeleteConfirmation , setPosition,] = useDesignerStore((s) => [s.showDeleteConfirmation, s.setPosition], shallow)
+    const [showDeleteConfirmation, setPosition, width, height, top, left] = useDesignerStore((s) =>
+        [s.showDeleteConfirmation, s.setPosition, s.width, s.height, s.top, s.left], shallow)
 
     const [showSelector] = useSelectorStore((s) => [s.showSelector], shallow)
 
diff --git a/karavan-designer/src/designer/route/property/DslPropertyField.tsx b/karavan-designer/src/designer/route/property/DslPropertyField.tsx
index 7bfe7f9b..44b32c5f 100644
--- a/karavan-designer/src/designer/route/property/DslPropertyField.tsx
+++ b/karavan-designer/src/designer/route/property/DslPropertyField.tsx
@@ -749,7 +749,7 @@ export const DslPropertyField = (props: Props) => {
                 {property.enumVals
                     && getSelect(property, value)}
                 {isKamelet && property.name === 'parameters' && getKameletParameters()}
-                {!isKamelet && property.name === 'parameters' && getComponentParameters(property)}
+                {/*{!isKamelet && property.name === 'parameters' && getComponentParameters(property)}*/}
             </FormGroup>
             {getInfrastructureSelectorModal()}
         </div>