mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-06 05:30:08 +00:00
Add Close Workflow to commands (#2171)
Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Chenlei Hu <huchenlei@proton.me>
This commit is contained in:
@@ -528,6 +528,16 @@ export function useCoreCommands(): ComfyCommand[] {
|
||||
function: () => {
|
||||
workflowService.duplicateWorkflow(workflowStore.activeWorkflow!)
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'Workspace.CloseWorkflow',
|
||||
icon: 'pi pi-times',
|
||||
label: 'Close Current Workflow',
|
||||
versionAdded: '1.7.3',
|
||||
function: () => {
|
||||
if (workflowStore.activeWorkflow)
|
||||
workflowService.closeWorkflow(workflowStore.activeWorkflow)
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user