fix(bulk): node-safe toast (globalThis.window) + common-tags test matches non-empty spec guard

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-16 18:15:23 -04:00
parent 82689e10bc
commit 35e26d6226
2 changed files with 16 additions and 5 deletions
+2 -2
View File
@@ -51,7 +51,7 @@ export const useGallerySelectionStore = defineStore('gallerySelection', () => {
body: { image_ids: order.value, tag_id: tagId, source }
})
await refresh()
window.__fcToast?.({
globalThis.window?.__fcToast?.({
text: `Added to ${body.added_count} image(s)`, type: 'success'
})
return body
@@ -62,7 +62,7 @@ export const useGallerySelectionStore = defineStore('gallerySelection', () => {
body: { image_ids: order.value, tag_id: tagId }
})
await refresh()
window.__fcToast?.({
globalThis.window?.__fcToast?.({
text: `Removed from ${body.removed_count} image(s)`, type: 'success'
})
return body