[backport core/1.40] Fix localization on share and hide entry (#9395) (#9613)

Backport of #9395 to core/1.40.

**Original PR:** https://github.com/Comfy-Org/ComfyUI_frontend/pull/9395
**Pipeline ticket:** 15e1f241-efaa-4fe5-88ca-4ccc7bfb3345

Co-authored-by: AustinMroz <austin@comfy.org>
This commit is contained in:
Christian Byrne
2026-03-07 18:44:11 -08:00
committed by GitHub
parent 5db2f20312
commit c2e3b8a841
2 changed files with 43 additions and 5 deletions

View File

@@ -143,10 +143,47 @@ export function useWorkflowActionsMenu(
isRoot
)
addItem(
t('breadcrumbsMenu.clearWorkflow'),
'pi pi-trash',
async () => {
addItem({
id: 'share',
label: t('breadcrumbsMenu.share'),
icon: 'icon-[comfy--send]',
command: async () => {},
visible: false
})
addItem({
id: 'enter-app-mode',
label: t('breadcrumbsMenu.enterAppMode'),
icon: 'icon-[lucide--panels-top-left]',
command: toggleLinear,
visible: showAppModeItems && !isLinearMode,
prependSeparator: true,
isNew: true
})
addItem({
id: 'exit-app-mode',
label: t('breadcrumbsMenu.exitAppMode'),
icon: 'icon-[comfy--workflow]',
command: toggleLinear,
visible: isLinearMode,
prependSeparator: true
})
addItem({
id: 'enter-builder-mode',
label: t('breadcrumbsMenu.enterBuilderMode'),
icon: 'icon-[lucide--hammer]',
command: () => enterBuilder(),
visible: showAppModeItems,
isNew: true
})
addItem({
id: 'clear-workflow',
label: t('breadcrumbsMenu.clearWorkflow'),
icon: 'pi pi-trash',
command: async () => {
await ensureWorkflowActive(workflow)
await commandStore.execute('Comfy.ClearWorkflow')
},

View File

@@ -2508,7 +2508,8 @@
"deleteWorkflow": "Delete Workflow",
"deleteBlueprint": "Delete Blueprint",
"enterNewName": "Enter new name",
"missingNodesWarning": "Workflow contains unsupported nodes (highlighted red)."
"missingNodesWarning": "Workflow contains unsupported nodes (highlighted red).",
"share": "Share"
},
"shortcuts": {
"shortcuts": "Shortcuts",