web: fix duplicate task id in deleteItemsFromTrash (#10286)

deleteItemsFromTrash reused the "restoreItems" task id from
restoreItemsFromTrash (copy-paste), so a permanent-delete and a
restore running close together shared the same status entry: the one
that finished first cleared the other's progress indicator, and the
displayed status text could reflect the wrong operation. Give the
delete task its own "deleteItems" id.

Signed-off-by: zigzagdev <msts.oo0131@gmail.com>
This commit is contained in:
Masatoshi Ogiwara
2026-08-27 13:03:58 +09:00
committed by GitHub
parent c9c4936d9e
commit 725df6f6f7

View File

@@ -214,7 +214,7 @@ async function deleteItemsFromTrash(ids: string[]) {
await TaskManager.startTask({ await TaskManager.startTask({
type: "status", type: "status",
id: "restoreItems", id: "deleteItems",
title: strings.inProgressActions.permanentlyDeleting.item(ids.length), title: strings.inProgressActions.permanentlyDeleting.item(ids.length),
action: async (report) => { action: async (report) => {
report({ report({