mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 22:37:32 +00:00
apply review comments
This commit is contained in:
@@ -333,7 +333,7 @@ export function useGraphNodeManager(graph: LGraph): GraphNodeManager {
|
||||
|
||||
vueNodeData.set(nodeId, updatedData)
|
||||
} catch (error) {
|
||||
// Ignore widget update errors to prevent cascade failures
|
||||
console.error('Error updating widget options:', error)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -365,7 +365,7 @@ export function useGraphNodeManager(graph: LGraph): GraphNodeManager {
|
||||
widgets: freshWidgets
|
||||
})
|
||||
} catch (error) {
|
||||
// Ignore refresh errors
|
||||
console.error('Error refreshing Vue widgets:', error)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -83,8 +83,8 @@ function handleSelect(value: string | number | boolean) {
|
||||
'bg-transparent border-none',
|
||||
'focus:outline-none',
|
||||
modelValue === option.value
|
||||
? 'bg-interface-menu-component-surface-selected text-primary'
|
||||
: 'text-secondary hover:bg-interface-menu-component-surface-hovered'
|
||||
? 'bg-interface-menu-component-surface-selected text-base-foreground'
|
||||
: 'text-muted-foreground hover:bg-interface-menu-component-surface-hovered'
|
||||
)
|
||||
"
|
||||
:aria-pressed="modelValue === option.value"
|
||||
|
||||
@@ -70,7 +70,8 @@ export const FOR_TESTING = {
|
||||
WidgetMarkdown,
|
||||
WidgetSelect,
|
||||
WidgetTextarea,
|
||||
WidgetToggleSwitch
|
||||
WidgetToggleSwitch,
|
||||
WidgetSelectToggle
|
||||
} as const
|
||||
|
||||
interface WidgetDefinition {
|
||||
|
||||
Reference in New Issue
Block a user