Skip to content

Commit

Permalink
Edit group name on group creation (With Ctrl + g) (#715)
Browse files Browse the repository at this point in the history
* Editor store

* Merge editors

* nit

* Edit on group creation

* nit
  • Loading branch information
huchenlei authored Sep 3, 2024
1 parent 4ad1e67 commit 4a230f7
Show file tree
Hide file tree
Showing 7 changed files with 184 additions and 209 deletions.
3 changes: 3 additions & 0 deletions browser_tests/interaction.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ test.describe('Node Interaction', () => {
await comfyPage.page.keyboard.press('KeyG')
await comfyPage.page.keyboard.up('Control')
await comfyPage.nextFrame()
// Confirm group title
await comfyPage.page.keyboard.press('Enter')
await comfyPage.nextFrame()
await expect(comfyPage.canvas).toHaveScreenshot('group-selected-nodes.png')
})
})
Expand Down
6 changes: 2 additions & 4 deletions src/components/graph/GraphCanvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@
<SideToolbar />
</template>
</LiteGraphCanvasSplitterOverlay>
<NodeTitleEditor />
<GroupTitleEditor />
<TitleEditor />
<canvas ref="canvasRef" id="graph-canvas" tabindex="1" />
</teleport>
<NodeSearchboxPopover v-if="nodeSearchEnabled" />
<NodeTooltip />
</template>

<script setup lang="ts">
import NodeTitleEditor from '@/components/graph/NodeTitleEditor.vue'
import GroupTitleEditor from '@/components/graph/GroupTitleEditor.vue'
import TitleEditor from '@/components/graph/TitleEditor.vue'
import SideToolbar from '@/components/sidebar/SideToolbar.vue'
import LiteGraphCanvasSplitterOverlay from '@/components/LiteGraphCanvasSplitterOverlay.vue'
import NodeSearchboxPopover from '@/components/searchbox/NodeSearchBoxPopover.vue'
Expand Down
104 changes: 0 additions & 104 deletions src/components/graph/GroupTitleEditor.vue

This file was deleted.

101 changes: 0 additions & 101 deletions src/components/graph/NodeTitleEditor.vue

This file was deleted.

Loading

0 comments on commit 4a230f7

Please sign in to comment.