mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-27 03:19:56 +00:00
Hides these features which the user does not need when on cloud. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6879-hide-unload-models-and-unload-cache-menu-entries-on-cloud-2b46d73d3650816a8e22e913a848e4ac) by [Unito](https://www.unito.io)
43 lines
977 B
TypeScript
43 lines
977 B
TypeScript
import { isCloud } from '@/platform/distribution/types'
|
|
|
|
export const CORE_MENU_COMMANDS = [
|
|
[[], ['Comfy.NewBlankWorkflow']],
|
|
[[], []], // Separator after New
|
|
[['File'], ['Comfy.OpenWorkflow']],
|
|
[
|
|
['File'],
|
|
[
|
|
'Comfy.SaveWorkflow',
|
|
'Comfy.SaveWorkflowAs',
|
|
'Comfy.ExportWorkflow',
|
|
'Comfy.ExportWorkflowAPI'
|
|
]
|
|
],
|
|
[['Edit'], ['Comfy.Undo', 'Comfy.Redo']],
|
|
[['Edit'], ['Comfy.ClearWorkflow']],
|
|
[['Edit'], ['Comfy.OpenClipspace']],
|
|
[
|
|
['Edit'],
|
|
[
|
|
'Comfy.RefreshNodeDefinitions',
|
|
...(isCloud
|
|
? []
|
|
: [
|
|
'Comfy.Memory.UnloadModels',
|
|
'Comfy.Memory.UnloadModelsAndExecutionCache'
|
|
])
|
|
]
|
|
],
|
|
[['View'], []],
|
|
[
|
|
['Help'],
|
|
[
|
|
'Comfy.Help.OpenComfyUIIssues',
|
|
'Comfy.Help.OpenComfyUIDocs',
|
|
'Comfy.Help.OpenComfyOrgDiscord',
|
|
'Comfy.Help.OpenComfyUIForum'
|
|
]
|
|
],
|
|
[['Help'], ['Comfy.Help.AboutComfyUI', 'Comfy.ContactSupport']]
|
|
]
|