fix(editor): Improve node creator items typing and fix missing icons (#14449)

This commit is contained in:
Milorad FIlipović
2025-04-08 13:26:50 +02:00
committed by GitHub
parent 4edb90f557
commit ad6c83afd4

View File

@@ -97,11 +97,7 @@ export interface NodeViewItem {
text: string; text: string;
}; };
forceIncludeNodes?: string[]; forceIncludeNodes?: string[];
iconData?: { iconData?: { type: 'file'; fileBuffer: string } | { type: 'icon'; icon: string };
type: string;
icon?: string;
fileBuffer?: string;
};
}; };
category?: string | string[]; category?: string | string[];
} }
@@ -375,7 +371,6 @@ export function TriggerView() {
description: i18n.baseText('nodeCreator.triggerHelperPanel.webhookTriggerDescription'), description: i18n.baseText('nodeCreator.triggerHelperPanel.webhookTriggerDescription'),
iconData: { iconData: {
type: 'file', type: 'file',
icon: 'webhook',
fileBuffer: '/static/webhook-icon.svg', fileBuffer: '/static/webhook-icon.svg',
}, },
}, },
@@ -391,7 +386,6 @@ export function TriggerView() {
description: i18n.baseText('nodeCreator.triggerHelperPanel.formTriggerDescription'), description: i18n.baseText('nodeCreator.triggerHelperPanel.formTriggerDescription'),
iconData: { iconData: {
type: 'file', type: 'file',
icon: 'form',
fileBuffer: '/static/form-grey.svg', fileBuffer: '/static/form-grey.svg',
}, },
}, },