mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 03:42:16 +00:00
fix(editor): Handle disabled nodes in schema view (#10052)
Co-authored-by: Shireen Missi <94372015+ShireenMissi@users.noreply.github.com>
This commit is contained in:
@@ -285,6 +285,7 @@ watch(
|
||||
|
||||
<div :class="$style.title">
|
||||
{{ currentNode.node.name }}
|
||||
<span v-if="currentNode.node.disabled">({{ $locale.baseText('node.disabled') }})</span>
|
||||
</div>
|
||||
<font-awesome-icon
|
||||
v-if="currentNode.nodeType.group.includes('trigger')"
|
||||
@@ -329,8 +330,16 @@ watch(
|
||||
>
|
||||
<div :class="$style.innerSchema" @transitionstart.stop>
|
||||
<div
|
||||
v-if="isDataEmpty(currentNode.schema)"
|
||||
:class="$style.empty"
|
||||
v-if="currentNode.node.disabled"
|
||||
:class="$style.notice"
|
||||
data-test-id="run-data-schema-disabled"
|
||||
>
|
||||
{{ i18n.baseText('dataMapping.schemaView.disabled') }}
|
||||
</div>
|
||||
|
||||
<div
|
||||
v-else-if="isDataEmpty(currentNode.schema)"
|
||||
:class="$style.notice"
|
||||
data-test-id="run-data-schema-empty"
|
||||
>
|
||||
{{ i18n.baseText('dataMapping.schemaView.emptyData') }}
|
||||
@@ -421,7 +430,7 @@ watch(
|
||||
scroll-margin-top: var(--header-height);
|
||||
}
|
||||
|
||||
.empty {
|
||||
.notice {
|
||||
padding-left: var(--spacing-l);
|
||||
}
|
||||
}
|
||||
@@ -443,7 +452,7 @@ watch(
|
||||
}
|
||||
}
|
||||
|
||||
.empty {
|
||||
.notice {
|
||||
font-size: var(--font-size-2xs);
|
||||
color: var(--color-text-light);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user