From 8c95d6ec53b735cc322a3b5f2a5a78002ae8441a Mon Sep 17 00:00:00 2001 From: OlegIvaniv Date: Tue, 13 Sep 2022 15:42:44 +0200 Subject: [PATCH] feat(editor): Show input number for multi-input nodes (#4000) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(editor): Show input number for multi-input nodes * ✨ Added multiple inputs detection logic to input panel * :bug: Fix a case where Input 1 and Input 2 are identical, do not display nodeIndex for single input nodes * :fire: Delete unused `MERGE_NODE_TYPE` constant * :recycle: Get input names dynamically for multi-input nodes Co-authored-by: Milorad Filipovic --- .../editor-ui/src/components/InputPanel.vue | 43 +++++++++++++++++-- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/packages/editor-ui/src/components/InputPanel.vue b/packages/editor-ui/src/components/InputPanel.vue index c30063458..1b88ee481 100644 --- a/packages/editor-ui/src/components/InputPanel.vue +++ b/packages/editor-ui/src/components/InputPanel.vue @@ -25,9 +25,10 @@ - + {{ truncate(node.name) }}  - {{ $locale.baseText('ndv.input.nodeDistance', {adjustToNumber: node.depth}) }} + {{ getMultipleNodesText(node.name) }} + {{ $locale.baseText('ndv.input.nodeDistance', {adjustToNumber: node.depth}) }} {{ $locale.baseText('ndv.input') }} @@ -67,7 +68,7 @@