mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 19:21:54 +00:00
await promises. update settings schema
This commit is contained in:
@@ -788,9 +788,9 @@ export function useCoreCommands(): ComfyCommand[] {
|
|||||||
icon: 'pi pi-bars',
|
icon: 'pi pi-bars',
|
||||||
label: 'Custom Nodes (Legacy)',
|
label: 'Custom Nodes (Legacy)',
|
||||||
versionAdded: '1.16.4',
|
versionAdded: '1.16.4',
|
||||||
function: () => {
|
function: async () => {
|
||||||
try {
|
try {
|
||||||
void useCommandStore().execute(
|
await useCommandStore().execute(
|
||||||
'Comfy.Manager.CustomNodesManager.ToggleVisibility'
|
'Comfy.Manager.CustomNodesManager.ToggleVisibility'
|
||||||
)
|
)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -808,9 +808,9 @@ export function useCoreCommands(): ComfyCommand[] {
|
|||||||
icon: 'mdi mdi-puzzle',
|
icon: 'mdi mdi-puzzle',
|
||||||
label: 'Manager Menu (Legacy)',
|
label: 'Manager Menu (Legacy)',
|
||||||
versionAdded: '1.16.4',
|
versionAdded: '1.16.4',
|
||||||
function: () => {
|
function: async () => {
|
||||||
try {
|
try {
|
||||||
void useCommandStore().execute('Comfy.Manager.Menu.ToggleVisibility')
|
await useCommandStore().execute('Comfy.Manager.Menu.ToggleVisibility')
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
useToastStore().add({
|
useToastStore().add({
|
||||||
severity: 'error',
|
severity: 'error',
|
||||||
|
|||||||
Reference in New Issue
Block a user