Skip to content

Commit a3c3b89

Browse files
committed
feat: implement product feedback
1 parent 42e590d commit a3c3b89

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/composables/graph/useVueNodeLifecycle.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ function useVueNodeLifecycleIndividual() {
2525

2626
const isVueNodeToastDismissed = useVueNodesMigrationDismissed()
2727

28+
let hasShownMigrationToast = false
29+
2830
const initializeNodeManager = () => {
2931
// Use canvas graph if available (handles subgraph contexts), fallback to app graph
3032
const activeGraph = comfyApp.canvas?.graph
@@ -85,8 +87,12 @@ function useVueNodeLifecycleIndividual() {
8587
ensureCorrectLayoutScale(
8688
comfyApp.canvas?.graph?.extra.workflowRendererVersion
8789
)
88-
// Only show toast on explicit false-to-true transition, not on initial undefined-to-true
89-
if (wasEnabled === false && !isVueNodeToastDismissed.value) {
90+
if (
91+
wasEnabled === false &&
92+
!isVueNodeToastDismissed.value &&
93+
!hasShownMigrationToast
94+
) {
95+
hasShownMigrationToast = true
9096
useToastStore().add({
9197
group: 'vue-nodes-migration',
9298
severity: 'info',

0 commit comments

Comments
 (0)