-
Notifications
You must be signed in to change notification settings - Fork 623
Decouple node help between sidebar and right panel #8110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
7a894e9
e15f532
7f546ca
9248689
e552899
bad835d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,7 +57,7 @@ | |
| variant="muted-textonly" | ||
| size="icon-sm" | ||
| :aria-label="$t('g.learnMore')" | ||
| @click.stop="props.openNodeHelp(nodeDef)" | ||
| @click.stop="onHelpClick" | ||
| > | ||
| <i class="pi pi-question size-3.5" /> | ||
| </Button> | ||
|
|
@@ -85,6 +85,7 @@ import TreeExplorerTreeNode from '@/components/common/TreeExplorerTreeNode.vue' | |
| import NodePreview from '@/components/node/NodePreview.vue' | ||
| import Button from '@/components/ui/button/Button.vue' | ||
| import { useSettingStore } from '@/platform/settings/settingStore' | ||
| import { useTelemetry } from '@/platform/telemetry' | ||
| import { useNodeBookmarkStore } from '@/stores/nodeBookmarkStore' | ||
| import type { ComfyNodeDefImpl } from '@/stores/nodeDefStore' | ||
| import { useSubgraphStore } from '@/stores/subgraphStore' | ||
|
|
@@ -112,6 +113,13 @@ const sidebarLocation = computed<'left' | 'right'>(() => | |
| const toggleBookmark = async () => { | ||
| await nodeBookmarkStore.toggleBookmark(nodeDef.value) | ||
| } | ||
|
|
||
| const onHelpClick = () => { | ||
| useTelemetry()?.trackUiButtonClicked({ | ||
| button_id: 'node_library_help_button' | ||
| }) | ||
| props.openNodeHelp(nodeDef.value) | ||
| } | ||
|
Comment on lines
+117
to
+122
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Consider calling Calling ♻️ Suggested refactor const settingStore = useSettingStore()
+const telemetry = useTelemetry()
const sidebarLocation = computed<'left' | 'right'>(() =>
settingStore.get('Comfy.Sidebar.Location')
)
const toggleBookmark = async () => {
await nodeBookmarkStore.toggleBookmark(nodeDef.value)
}
const onHelpClick = () => {
- useTelemetry()?.trackUiButtonClicked({
+ telemetry?.trackUiButtonClicked({
button_id: 'node_library_help_button'
})
props.openNodeHelp(nodeDef.value)
}🤖 Prompt for AI Agents |
||
| const editBlueprint = async () => { | ||
| if (!props.node.data) | ||
| throw new Error( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.