@@ -21,6 +21,7 @@ import {
2121import type { Point } from '@/lib/litegraph/src/litegraph'
2222import { useAssetBrowserDialog } from '@/platform/assets/composables/useAssetBrowserDialog'
2323import { createModelNodeFromAsset } from '@/platform/assets/utils/createModelNodeFromAsset'
24+ import { useSubscription } from '@/platform/cloud/subscription/composables/useSubscription'
2425import { isCloud } from '@/platform/distribution/types'
2526import { useSettingStore } from '@/platform/settings/settingStore'
2627import { SUPPORT_URL } from '@/platform/support/config'
@@ -63,6 +64,8 @@ import { ManagerTab } from '@/workbench/extensions/manager/types/comfyManagerTyp
6364
6465import { useWorkflowTemplateSelectorDialog } from './useWorkflowTemplateSelectorDialog'
6566
67+ const { isActiveSubscription, showSubscriptionDialog } = useSubscription ( )
68+
6669const moveSelectedNodesVersionAdded = '1.22.2'
6770
6871export function useCoreCommands ( ) : ComfyCommand [ ] {
@@ -453,6 +456,11 @@ export function useCoreCommands(): ComfyCommand[] {
453456 versionAdded : '1.3.7' ,
454457 category : 'essentials' as const ,
455458 function : async ( ) => {
459+ if ( ! isActiveSubscription . value ) {
460+ showSubscriptionDialog ( )
461+ return
462+ }
463+
456464 const batchCount = useQueueSettingsStore ( ) . batchCount
457465
458466 if ( isCloud ) {
@@ -469,6 +477,11 @@ export function useCoreCommands(): ComfyCommand[] {
469477 versionAdded : '1.3.7' ,
470478 category : 'essentials' as const ,
471479 function : async ( ) => {
480+ if ( ! isActiveSubscription . value ) {
481+ showSubscriptionDialog ( )
482+ return
483+ }
484+
472485 const batchCount = useQueueSettingsStore ( ) . batchCount
473486
474487 if ( isCloud ) {
@@ -484,6 +497,11 @@ export function useCoreCommands(): ComfyCommand[] {
484497 label : 'Queue Selected Output Nodes' ,
485498 versionAdded : '1.19.6' ,
486499 function : async ( ) => {
500+ if ( ! isActiveSubscription . value ) {
501+ showSubscriptionDialog ( )
502+ return
503+ }
504+
487505 const batchCount = useQueueSettingsStore ( ) . batchCount
488506 const selectedNodes = getSelectedNodes ( )
489507 const selectedOutputNodes = filterOutputNodes ( selectedNodes )
0 commit comments