From 8dd23a0e8d45372ea1e5eb43898cb576e00872c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Wed, 7 Sep 2022 09:18:18 +0200 Subject: [PATCH] fix(editor-ui): Disable editing in Function nodes in executions view (#4041) :bug: Disable editing in Function nodes in executions view --- packages/editor-ui/src/components/CodeEdit.vue | 4 ++-- packages/editor-ui/src/components/ParameterInput.vue | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/editor-ui/src/components/CodeEdit.vue b/packages/editor-ui/src/components/CodeEdit.vue index 8330b3f86bb91..25f97b160ee3d 100644 --- a/packages/editor-ui/src/components/CodeEdit.vue +++ b/packages/editor-ui/src/components/CodeEdit.vue @@ -8,7 +8,7 @@ :before-close="closeDialog" >
- +
@@ -41,7 +41,7 @@ export default mixins( components: { CodeEditor, }, - props: ['codeAutocomplete', 'parameter', 'path', 'type', 'value'], + props: ['codeAutocomplete', 'parameter', 'path', 'type', 'value', 'readonly'], methods: { loadAutocompleteData(): string[] { if (['function', 'functionItem'].includes(this.codeAutocomplete)) { diff --git a/packages/editor-ui/src/components/ParameterInput.vue b/packages/editor-ui/src/components/ParameterInput.vue index c9d40902ada87..d5507f00352aa 100644 --- a/packages/editor-ui/src/components/ParameterInput.vue +++ b/packages/editor-ui/src/components/ParameterInput.vue @@ -37,6 +37,7 @@ :type="editorType" :codeAutocomplete="codeAutocomplete" :path="path" + :readonly="isReadOnly" @closeDialog="closeCodeEditDialog" @valueChanged="expressionUpdated" >