Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feature: useCoreCommand added
  • Loading branch information
viva-jinyi committed Aug 18, 2025
commit ec30a8011fe3d3be3095c95f3dcb12d5164ebf68
12 changes: 12 additions & 0 deletions src/composables/useCoreCommands.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useFirebaseAuthActions } from '@/composables/auth/useFirebaseAuthActions'
import { useSelectedLiteGraphItems } from '@/composables/canvas/useSelectedLiteGraphItems'
import { useModelSelectorDialog } from '@/composables/useModelSelectorDialog'
import {
DEFAULT_DARK_COLOR_PALETTE,
DEFAULT_LIGHT_COLOR_PALETTE
Expand Down Expand Up @@ -878,6 +879,17 @@ export function useCoreCommands(): ComfyCommand[] {
navigationStore.navigationStack.at(-2) ?? canvas.graph.rootGraph
)
}
},
{
id: 'Comfy.Dev.ShowModelSelector',
icon: 'pi pi-box',
label: 'Show Model Selector (Dev)',
versionAdded: '1.26.2',
category: 'view-controls' as const,
function: () => {
const modelSelectorDialog = useModelSelectorDialog()
modelSelectorDialog.show()
}
}
]

Expand Down
3 changes: 2 additions & 1 deletion src/composables/useModelSelectorDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const useModelSelectorDialog = () => {
}

return {
show
show,
hide
}
}