mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-28 02:02:08 +00:00
hide "unload models" and "unload cache" menu entries on cloud (#6879)
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)
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
import { isCloud } from '@/platform/distribution/types'
|
||||||
|
|
||||||
export const CORE_MENU_COMMANDS = [
|
export const CORE_MENU_COMMANDS = [
|
||||||
[[], ['Comfy.NewBlankWorkflow']],
|
[[], ['Comfy.NewBlankWorkflow']],
|
||||||
[[], []], // Separator after New
|
[[], []], // Separator after New
|
||||||
@@ -18,8 +20,12 @@ export const CORE_MENU_COMMANDS = [
|
|||||||
['Edit'],
|
['Edit'],
|
||||||
[
|
[
|
||||||
'Comfy.RefreshNodeDefinitions',
|
'Comfy.RefreshNodeDefinitions',
|
||||||
'Comfy.Memory.UnloadModels',
|
...(isCloud
|
||||||
'Comfy.Memory.UnloadModelsAndExecutionCache'
|
? []
|
||||||
|
: [
|
||||||
|
'Comfy.Memory.UnloadModels',
|
||||||
|
'Comfy.Memory.UnloadModelsAndExecutionCache'
|
||||||
|
])
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
[['View'], []],
|
[['View'], []],
|
||||||
|
|||||||
Reference in New Issue
Block a user