fix: restore list archiving
ci / gitleaks (push) Successful in 7s
ci / docker (push) Successful in 5m30s

This commit is contained in:
2026-09-20 22:48:12 +08:00
parent 99da524070
commit 5e338fa90f
2 changed files with 4 additions and 2 deletions
+1 -2
View File
@@ -1282,8 +1282,7 @@ async function renameEntity(kind: 'folders' | 'lists', item: FolderItem | TaskLi
}
async function deleteEntity(kind: 'folders' | 'lists', item: FolderItem | TaskList) {
if (kind === 'lists') {
const answer = await askText(`归档清单「${item.name}」?`, '', '', '归档')
if (answer === null) return
if (!(await confirmAction(`归档清单「${item.name}」?`, '任务会保留,可从“已归档”恢复'))) return
try {
const wasCurrentList = activeView.value === 'tasks' && activeList.value === item.id
await api(`/${kind}/${item.id}`, { method: 'DELETE' })