mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
fix: return empty badge for frontend_only nodes (GREEN)
Special-case 'custom_nodes.frontend_only' in getNodeSource() to return empty badgeText instead of 'frontend_only'. This prevents frontend-only nodes (e.g. rgthree Reroute) from showing a misleading 'frontend_only' badge that obscures user-set titles. Fixes #9997
This commit is contained in:
@@ -63,6 +63,14 @@ export function getNodeSource(
|
||||
if (!moduleName) {
|
||||
return UNKNOWN_NODE_SOURCE
|
||||
}
|
||||
if (moduleName === 'frontend_only') {
|
||||
return {
|
||||
type: NodeSourceType.CustomNodes,
|
||||
className: 'comfy-frontend-only',
|
||||
displayText: 'Frontend Only',
|
||||
badgeText: ''
|
||||
}
|
||||
}
|
||||
const customNodeName = moduleName.split('@')[0]
|
||||
const displayName = shortenNodeName(customNodeName)
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user