From 0c2d7a949bf654924f9750d7e90e13af3ad2cc68 Mon Sep 17 00:00:00 2001 From: Michael Kret Date: Wed, 22 May 2024 11:36:55 +0300 Subject: [PATCH 1/7] test button tolltip on latest node version --- .../src/components/NodeDetailsView.vue | 14 +++++++++++ .../src/components/NodeExecuteButton.vue | 24 +++++++++++++++---- .../editor-ui/src/components/NodeSettings.vue | 13 ++++++++++ .../src/plugins/i18n/locales/en.json | 1 + 4 files changed, 48 insertions(+), 4 deletions(-) diff --git a/packages/editor-ui/src/components/NodeDetailsView.vue b/packages/editor-ui/src/components/NodeDetailsView.vue index 7822f32dc9916..662c54f595a55 100644 --- a/packages/editor-ui/src/components/NodeDetailsView.vue +++ b/packages/editor-ui/src/components/NodeDetailsView.vue @@ -113,6 +113,7 @@ :read-only="readOnly" :block-u-i="blockUi && showTriggerPanel" :executable="!readOnly" + :input-size="inputSize" @value-changed="valueChanged" @execute="onNodeExecute" @stop-execution="onStopExecution" @@ -312,6 +313,18 @@ export default defineComponent({ return null; }); + const inputSize = computed(() => { + if (workflowRunData.value && inputNodeName.value) { + return ( + workflowRunData.value[inputNodeName.value]?.[inputRun.value]?.data?.[ + NodeConnectionType.Main + ]?.[outputRun.value]?.length ?? 0 + ); + } + + return 0; + }); + const isTriggerNode = computed( () => !!activeNodeType.value && @@ -847,6 +860,7 @@ export default defineComponent({ inputRun, linked, inputNodeName, + inputSize, hasForeignCredential, outputRun, isOutputPaneActive, diff --git a/packages/editor-ui/src/components/NodeExecuteButton.vue b/packages/editor-ui/src/components/NodeExecuteButton.vue index 917a46b207f9b..10adaaf74be58 100644 --- a/packages/editor-ui/src/components/NodeExecuteButton.vue +++ b/packages/editor-ui/src/components/NodeExecuteButton.vue @@ -1,20 +1,24 @@