mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
fix(editor-ui): Disable editing in Function nodes in executions view (#4041)
🐛 Disable editing in Function nodes in executions view
This commit is contained in:
parent
e565b87cf8
commit
772836abc7
|
@ -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>
|
||||
|
@ -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)) {
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
:type="editorType"
|
||||
:codeAutocomplete="codeAutocomplete"
|
||||
:path="path"
|
||||
:readonly="isReadOnly"
|
||||
@closeDialog="closeCodeEditDialog"
|
||||
@valueChanged="expressionUpdated"
|
||||
></code-edit>
|
||||
|
|
Loading…
Reference in a new issue