Skip to content

Commit

Permalink
fix(editor-ui): Disable editing in Function nodes in executions view (n…
Browse files Browse the repository at this point in the history
…8n-io#4041)

🐛 Disable editing in Function nodes in executions view
  • Loading branch information
ivov authored Sep 7, 2022
1 parent 005bb70 commit 8dd23a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/editor-ui/src/components/CodeEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
:before-close="closeDialog"
>
<div class="text-editor-wrapper ignore-key-press">
<code-editor :value="value" :autocomplete="loadAutocompleteData" @input="$emit('valueChanged', $event)" />
<code-editor :value="value" :autocomplete="loadAutocompleteData" :readonly="readonly" @input="$emit('valueChanged', $event)" />
</div>
</el-dialog>
</template>
Expand Down Expand Up @@ -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)) {
Expand Down
1 change: 1 addition & 0 deletions packages/editor-ui/src/components/ParameterInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
:type="editorType"
:codeAutocomplete="codeAutocomplete"
:path="path"
:readonly="isReadOnly"
@closeDialog="closeCodeEditDialog"
@valueChanged="expressionUpdated"
></code-edit>
Expand Down

0 comments on commit 8dd23a0

Please sign in to comment.