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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user