release: v2.6.2-beta English and French interface

This commit is contained in:
fsylvain committed 2026-10-03 02:08:52 +02:00
1 parent 721311a643
commit 2c8f39273c
4 files changed
+39 -3

No files matched your search

+2
View File
@@ -199,6 +199,8 @@ describe('Switch language without losing work', () => {
.find((button) => button.textContent?.trim() === 'Retry')!
.click()
await flushPromises()
await new Promise((resolve) => setTimeout(resolve, 250))
await flushPromises()
await captureBothWays(
'2 images were deleted. kitchen-before.webp is still in your library. Try again.',
'2 images ont été supprimées. kitchen-before.webp est toujours dans votre bibliothèque. Réessayez.',
+7 -3
View File
@@ -100,6 +100,8 @@ let opener: HTMLElement | null = null
let skipFocusRestore = false
let pendingSelectId: number | null = null
let bulkDeletedTotal = 0
let bulkFailureRevision = 0
let bulkFailureToastId = BULK_FAILED_TOAST_ID
let failureToastShown = false
const activeItem = computed(
@@ -645,17 +647,17 @@ function bulkFailedToast(failed: MediaItem[]) {
],
}
if (failureToastShown) {
toast.update(BULK_FAILED_TOAST_ID, () => content)
toast.update(bulkFailureToastId, () => content)
return
}
failureToastShown = true
toast.add(() => ({ id: BULK_FAILED_TOAST_ID, ...content }))
toast.add(() => ({ id: bulkFailureToastId, ...content }))
}
function dismissBulkFailedToast() {
if (failureToastShown) {
failureToastShown = false
toast.remove(BULK_FAILED_TOAST_ID)
toast.remove(bulkFailureToastId)
}
}
@@ -708,6 +710,8 @@ async function bulkDeleteAction() {
}
async function retryBulkDelete(failed: MediaItem[]) {
dismissBulkFailedToast()
bulkFailureToastId = `${BULK_FAILED_TOAST_ID}-${++bulkFailureRevision}`
const firstIndex = firstIndexOf(failed)
const result = await media.deleteMany(failed)
if (result.handled) {