mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(editor): Fix schema view in AI tools (#11089)
This commit is contained in:
@@ -246,8 +246,8 @@ export default defineComponent({
|
||||
isSchemaView(): boolean {
|
||||
return this.displayMode === 'schema';
|
||||
},
|
||||
isInputSchemaView(): boolean {
|
||||
return this.isSchemaView && this.paneType === 'input';
|
||||
displaysMultipleNodes(): boolean {
|
||||
return this.isSchemaView && this.paneType === 'input' && this.nodes.length > 0;
|
||||
},
|
||||
isTriggerNode(): boolean {
|
||||
if (this.node === null) {
|
||||
@@ -1307,7 +1307,7 @@ export default defineComponent({
|
||||
</div>
|
||||
|
||||
<div
|
||||
v-if="maxRunIndex > 0 && !isInputSchemaView"
|
||||
v-if="maxRunIndex > 0 && !displaysMultipleNodes"
|
||||
v-show="!editMode.enabled"
|
||||
:class="$style.runSelector"
|
||||
>
|
||||
@@ -1349,7 +1349,7 @@ export default defineComponent({
|
||||
<slot name="run-info"></slot>
|
||||
</div>
|
||||
|
||||
<slot v-if="!isInputSchemaView" name="before-data" />
|
||||
<slot v-if="!displaysMultipleNodes" name="before-data" />
|
||||
|
||||
<n8n-callout
|
||||
v-for="hint in getNodeHints()"
|
||||
@@ -1361,7 +1361,7 @@ export default defineComponent({
|
||||
</n8n-callout>
|
||||
|
||||
<div
|
||||
v-if="maxOutputIndex > 0 && branches.length > 1 && !isInputSchemaView"
|
||||
v-if="maxOutputIndex > 0 && branches.length > 1 && !displaysMultipleNodes"
|
||||
:class="$style.outputs"
|
||||
data-test-id="branches"
|
||||
>
|
||||
@@ -1382,7 +1382,7 @@ export default defineComponent({
|
||||
hasNodeRun &&
|
||||
((dataCount > 0 && maxRunIndex === 0) || search) &&
|
||||
!isArtificialRecoveredEventItem &&
|
||||
!isInputSchemaView
|
||||
!displaysMultipleNodes
|
||||
"
|
||||
v-show="!editMode.enabled && !hasRunError"
|
||||
:class="[$style.itemsCount, { [$style.muted]: paneType === 'input' && maxRunIndex === 0 }]"
|
||||
@@ -1443,12 +1443,15 @@ export default defineComponent({
|
||||
<slot name="node-waiting">xxx</slot>
|
||||
</div>
|
||||
|
||||
<div v-else-if="!hasNodeRun && !(isInputSchemaView && node?.disabled)" :class="$style.center">
|
||||
<div
|
||||
v-else-if="!hasNodeRun && !(displaysMultipleNodes && node?.disabled)"
|
||||
:class="$style.center"
|
||||
>
|
||||
<slot name="node-not-run"></slot>
|
||||
</div>
|
||||
|
||||
<div
|
||||
v-else-if="paneType === 'input' && !isInputSchemaView && node?.disabled"
|
||||
v-else-if="paneType === 'input' && !displaysMultipleNodes && node?.disabled"
|
||||
:class="$style.center"
|
||||
>
|
||||
<n8n-text>
|
||||
|
||||
Reference in New Issue
Block a user