File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 <div class =" flex h-full flex-col" >
33 <!-- Active Jobs Grid -->
44 <div
5- v-if =" activeJobItems.length"
5+ v-if =" isQueuePanelV2Enabled && activeJobItems.length"
66 class =" grid max-h-[50%] scrollbar-custom overflow-y-auto"
77 :style =" gridStyle"
88 >
@@ -65,6 +65,7 @@ import MediaAssetCard from '@/platform/assets/components/MediaAssetCard.vue'
6565import type { AssetItem } from ' @/platform/assets/schemas/assetSchema'
6666import { isActiveJobState } from ' @/utils/queueUtil'
6767import { cn } from ' @/utils/tailwindUtil'
68+ import { useSettingStore } from ' @/platform/settings/settingStore'
6869
6970const {
7071 assets,
@@ -90,6 +91,11 @@ const emit = defineEmits<{
9091
9192const { t } = useI18n ()
9293const { jobItems } = useJobList ()
94+ const settingStore = useSettingStore ()
95+
96+ const isQueuePanelV2Enabled = computed (() =>
97+ settingStore .get (' Comfy.Queue.QPOV2' )
98+ )
9399
94100type AssetGridItem = { key: string ; asset: AssetItem }
95101
Original file line number Diff line number Diff line change 11<template >
22 <div class =" flex h-full flex-col" >
33 <div
4- v-if =" activeJobItems.length"
4+ v-if =" isQueuePanelV2Enabled && activeJobItems.length"
55 class =" flex max-h-[50%] scrollbar-custom flex-col gap-2 overflow-y-auto px-2"
66 >
77 <AssetsListItem
@@ -133,6 +133,7 @@ import {
133133} from ' @/utils/formatUtil'
134134import { iconForJobState } from ' @/utils/queueDisplay'
135135import { cn } from ' @/utils/tailwindUtil'
136+ import { useSettingStore } from ' @/platform/settings/settingStore'
136137
137138const {
138139 assets,
@@ -154,6 +155,11 @@ const emit = defineEmits<{
154155
155156const { t } = useI18n ()
156157const { jobItems } = useJobList ()
158+ const settingStore = useSettingStore ()
159+
160+ const isQueuePanelV2Enabled = computed (() =>
161+ settingStore .get (' Comfy.Queue.QPOV2' )
162+ )
157163const hoveredJobId = ref <string | null >(null )
158164const hoveredAssetId = ref <string | null >(null )
159165
You can’t perform that action at this time.
0 commit comments