add an example of the python editor NDV

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2024-09-24 19:39:02 +02:00
parent b46b97eb68
commit fe1c8ab438
No known key found for this signature in database

View file

@ -51,6 +51,7 @@ import { useToast } from '@/composables/useToast';
import { useI18n } from '@/composables/useI18n';
import { useTelemetry } from '@/composables/useTelemetry';
import { importCurlEventBus, ndvEventBus } from '@/event-bus';
import PythonEditor from './PythonEditor/PythonEditor.vue';
const props = withDefaults(
defineProps<{
@ -1054,6 +1055,7 @@ onBeforeUnmount(() => {
{{ $locale.baseText('nodeSettings.thisNodeDoesNotHaveAnyParameters') }}
</n8n-text>
</div>
<PythonEditor :is-read-only="true" :model-value="`x = lambda a: a + 10\nprint(x(5))`" />
<div
v-if="nodeHelpers.isCustomApiCallSelected(nodeValues)"