mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-04 15:10:06 +00:00
Edit group name on group creation (With Ctrl + g) (#715)
* Editor store * Merge editors * nit * Edit on group creation * nit
This commit is contained in:
@@ -8,6 +8,7 @@ import { showSettingsDialog } from '@/services/dialogService'
|
||||
import { useToastStore } from '@/stores/toastStore'
|
||||
import { LGraphGroup } from '@comfyorg/litegraph'
|
||||
import { useSettingStore } from '@/stores/settingStore'
|
||||
import { useTitleEditorStore } from '@/stores/graphStore'
|
||||
|
||||
export const ComfyDialog = _ComfyDialog
|
||||
|
||||
@@ -783,6 +784,7 @@ export class ComfyUI {
|
||||
)
|
||||
group.addNodes(Object.values(app.canvas.selected_nodes), padding)
|
||||
app.canvas.graph.add(group)
|
||||
useTitleEditorStore().titleEditorTarget = group
|
||||
}
|
||||
})
|
||||
]) as HTMLDivElement
|
||||
|
||||
Reference in New Issue
Block a user