mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(editor): Disable deactivated node execution
This commit is contained in:
parent
a7f0c66e30
commit
c4060aa9a4
|
@ -155,7 +155,7 @@ const disabledHint = computed(() => {
|
|||
return i18n.baseText('ndv.execute.generatingCode');
|
||||
}
|
||||
|
||||
if (isTriggerNode.value && node?.value?.disabled) {
|
||||
if (node?.value?.disabled) {
|
||||
return i18n.baseText('ndv.execute.nodeIsDisabled');
|
||||
}
|
||||
|
||||
|
|
|
@ -94,17 +94,23 @@ function onMouseLeave() {
|
|||
@mouseleave="onMouseLeave"
|
||||
>
|
||||
<div :class="$style.canvasNodeToolbarItems">
|
||||
<N8nIconButton
|
||||
v-if="isExecuteNodeVisible"
|
||||
data-test-id="execute-node-button"
|
||||
type="tertiary"
|
||||
text
|
||||
size="small"
|
||||
icon="play"
|
||||
:disabled="isExecuting"
|
||||
:title="i18n.baseText('node.testStep')"
|
||||
@click="executeNode"
|
||||
/>
|
||||
<N8nTooltip
|
||||
placement="top"
|
||||
:disabled="!isDisabled"
|
||||
:content="i18n.baseText('ndv.execute.deactivated')"
|
||||
>
|
||||
<N8nIconButton
|
||||
v-if="isExecuteNodeVisible"
|
||||
data-test-id="execute-node-button"
|
||||
type="tertiary"
|
||||
text
|
||||
size="small"
|
||||
icon="play"
|
||||
:disabled="isExecuting || isDisabled"
|
||||
:title="i18n.baseText('node.testStep')"
|
||||
@click="executeNode"
|
||||
/>
|
||||
</N8nTooltip>
|
||||
<N8nIconButton
|
||||
v-if="isDisableNodeVisible"
|
||||
data-test-id="disable-node-button"
|
||||
|
|
|
@ -976,6 +976,7 @@
|
|||
"ndv.execute.requiredFieldsMissing": "Complete required fields first",
|
||||
"ndv.execute.stopWaitingForWebhook.error": "Problem deleting test webhook",
|
||||
"ndv.execute.workflowAlreadyRunning": "Workflow is already running",
|
||||
"ndv.execute.deactivated": "This node is deactivated and can't be run",
|
||||
"ndv.featureRequest": "I wish this node would...",
|
||||
"ndv.input": "Input",
|
||||
"ndv.input.nodeDistance": "{count} node back | {count} nodes back",
|
||||
|
|
Loading…
Reference in a new issue