mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 22:59:14 +00:00
Add help menu on command menu bar (#1197)
* Add help menu on command menu bar * nit
This commit is contained in:
@@ -9,7 +9,12 @@
|
||||
}"
|
||||
>
|
||||
<template #item="{ item, props }">
|
||||
<a class="p-menubar-item-link" v-bind="props.action">
|
||||
<a
|
||||
class="p-menubar-item-link"
|
||||
v-bind="props.action"
|
||||
:href="item.url"
|
||||
target="_blank"
|
||||
>
|
||||
<span v-if="item.icon" class="p-menubar-item-icon" :class="item.icon" />
|
||||
<span class="p-menubar-item-label">{{ item.label }}</span>
|
||||
<span
|
||||
|
||||
@@ -98,6 +98,27 @@ export const useMenuItemStore = defineStore('menuItem', () => {
|
||||
registerCommands(['Edit'], ['Comfy.ClearWorkflow'])
|
||||
registerCommands(['Edit'], ['Comfy.OpenClipspace'])
|
||||
|
||||
registerMenuGroup(
|
||||
['Help'],
|
||||
[
|
||||
{
|
||||
icon: 'pi pi-github',
|
||||
label: 'ComfyUI Issues',
|
||||
url: 'https://github.com/comfyanonymous/ComfyUI/issues'
|
||||
},
|
||||
{
|
||||
icon: 'pi pi-info-circle',
|
||||
label: 'ComfyUI Docs',
|
||||
url: 'https://docs.comfy.org/'
|
||||
},
|
||||
{
|
||||
icon: 'pi pi-discord',
|
||||
label: 'Comfy-Org',
|
||||
url: 'https://www.comfy.org/discord'
|
||||
}
|
||||
]
|
||||
)
|
||||
|
||||
return {
|
||||
menuItems,
|
||||
registerMenuGroup,
|
||||
|
||||
Reference in New Issue
Block a user