Ensure reactive

This commit is contained in:
pythongosssss
2026-01-12 11:46:59 +00:00
parent d3f502e1fa
commit 3c07f81ad4

View File

@@ -195,7 +195,15 @@ import { useDebounceFn, useElementHover, useResizeObserver } from '@vueuse/core'
import Divider from 'primevue/divider'
import ProgressSpinner from 'primevue/progressspinner'
import { useToast } from 'primevue/usetoast'
import { computed, onMounted, onUnmounted, ref, watch } from 'vue'
import {
computed,
onMounted,
onUnmounted,
ref,
shallowRef,
triggerRef,
watch
} from 'vue'
import { useI18n } from 'vue-i18n'
import NoResultsPlaceholder from '@/components/common/NoResultsPlaceholder.vue'
@@ -240,7 +248,7 @@ const isQueuePanelV2Enabled = computed(() =>
const openContextMenuId = ref<string | null>(null)
// Track which assets are currently being deleted (for showing loading state)
const deletingAssetIds = ref(new Set<string>())
const deletingAssetIds = shallowRef(new Set<string>())
// Determine if delete button should be shown
// Hide delete button when in input tab and not in cloud (OSS mode - files are from local folders)
@@ -540,6 +548,7 @@ const setAssetsDeletingState = (assetIds: string[], isDeleting: boolean) => {
? deletingAssetIds.value.add(id)
: deletingAssetIds.value.delete(id)
)
triggerRef(deletingAssetIds)
}
const handleBulkDownload = (assets: AssetItem[]) => {