mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
fix(editor): Fix node icon in node creator header (#9782)
This commit is contained in:
@@ -19,7 +19,12 @@
|
||||
import type { IVersionNode, SimplifiedNodeType } from '@/Interface';
|
||||
import { useRootStore } from '@/stores/n8nRoot.store';
|
||||
import { useUIStore } from '@/stores/ui.store';
|
||||
import { getBadgeIconUrl, getNodeIcon, getNodeIconUrl } from '@/utils/nodeTypesUtils';
|
||||
import {
|
||||
getBadgeIconUrl,
|
||||
getNodeIcon,
|
||||
getNodeIconColor,
|
||||
getNodeIconUrl,
|
||||
} from '@/utils/nodeTypesUtils';
|
||||
import type { INodeTypeDescription } from 'n8n-workflow';
|
||||
import { computed } from 'vue';
|
||||
|
||||
@@ -75,14 +80,7 @@ const iconType = computed(() => {
|
||||
return 'unknown';
|
||||
});
|
||||
|
||||
const color = computed(() => {
|
||||
const nodeType = props.nodeType;
|
||||
|
||||
if (nodeType && 'iconColor' in nodeType && nodeType.iconColor) {
|
||||
return `var(--color-node-icon-${nodeType.iconColor})`;
|
||||
}
|
||||
return nodeType?.defaults?.color?.toString() ?? props.colorDefault ?? '';
|
||||
});
|
||||
const color = computed(() => getNodeIconColor(props.nodeType) ?? props.colorDefault ?? '');
|
||||
|
||||
const iconSource = computed<NodeIconSource>(() => {
|
||||
const nodeType = props.nodeType;
|
||||
|
||||
Reference in New Issue
Block a user