mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -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"
|
:before-close="closeDialog"
|
||||||
>
|
>
|
||||||
<div class="text-editor-wrapper ignore-key-press">
|
<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>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
@ -41,7 +41,7 @@ export default mixins(
|
||||||
components: {
|
components: {
|
||||||
CodeEditor,
|
CodeEditor,
|
||||||
},
|
},
|
||||||
props: ['codeAutocomplete', 'parameter', 'path', 'type', 'value'],
|
props: ['codeAutocomplete', 'parameter', 'path', 'type', 'value', 'readonly'],
|
||||||
methods: {
|
methods: {
|
||||||
loadAutocompleteData(): string[] {
|
loadAutocompleteData(): string[] {
|
||||||
if (['function', 'functionItem'].includes(this.codeAutocomplete)) {
|
if (['function', 'functionItem'].includes(this.codeAutocomplete)) {
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
:type="editorType"
|
:type="editorType"
|
||||||
:codeAutocomplete="codeAutocomplete"
|
:codeAutocomplete="codeAutocomplete"
|
||||||
:path="path"
|
:path="path"
|
||||||
|
:readonly="isReadOnly"
|
||||||
@closeDialog="closeCodeEditDialog"
|
@closeDialog="closeCodeEditDialog"
|
||||||
@valueChanged="expressionUpdated"
|
@valueChanged="expressionUpdated"
|
||||||
></code-edit>
|
></code-edit>
|
||||||
|
|
Loading…
Reference in a new issue