Skip to content

Commit 3774b6c

Browse files
committed
chore: clean subgraph code
1 parent aa429ee commit 3774b6c

File tree

6 files changed

+7
-402
lines changed

6 files changed

+7
-402
lines changed

src/composables/useCoreCommands.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
DEFAULT_LIGHT_COLOR_PALETTE
99
} from '@/constants/coreColorPalettes'
1010
import { tryToggleWidgetPromotion } from '@/core/graph/subgraph/proxyWidgetUtils'
11-
import { showSubgraphNodeDialog } from '@/core/graph/subgraph/useSubgraphNodeDialog'
1211
import { t } from '@/i18n'
1312
import {
1413
LGraphEventMode,
@@ -48,6 +47,7 @@ import { useSubgraphNavigationStore } from '@/stores/subgraphNavigationStore'
4847
import { useSubgraphStore } from '@/stores/subgraphStore'
4948
import { useBottomPanelStore } from '@/stores/workspace/bottomPanelStore'
5049
import { useColorPaletteStore } from '@/stores/workspace/colorPaletteStore'
50+
import { useRightSidePanelStore } from '@/stores/workspace/rightSidePanelStore'
5151
import { useSearchBoxStore } from '@/stores/workspace/searchBoxStore'
5252
import { useWorkspaceStore } from '@/stores/workspaceStore'
5353
import {
@@ -1025,7 +1025,9 @@ export function useCoreCommands(): ComfyCommand[] {
10251025
label: 'Edit Subgraph Widgets',
10261026
icon: 'icon-[lucide--settings-2]',
10271027
versionAdded: '1.28.5',
1028-
function: showSubgraphNodeDialog
1028+
function: () => {
1029+
useRightSidePanelStore().openPanel('subgraph')
1030+
}
10291031
},
10301032
{
10311033
id: 'Comfy.Graph.ToggleWidgetPromotion',

src/core/graph/subgraph/SubgraphNode.vue

Lines changed: 0 additions & 311 deletions
This file was deleted.

src/core/graph/subgraph/SubgraphNodeWidget.vue

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)