v2.3 Papierkorb: Board-Loeschen in den Papierkorb umleiten (Confirm bleibt)

This commit is contained in:
2026-06-14 09:48:06 +02:00
parent 9abfefc0e0
commit 061c3708bc
+6
View File
@@ -151,6 +151,12 @@ function createBoardEl(board) {
{ type: 'danger', title: t('boards.delete_confirm.title'), confirmText: t('boards.delete') }
);
if (ok) {
// Ganzes board-Objekt (inkl. bookmarks UND blurred-Flag, CR-01) in den Papierkorb.
// type:'board', kein originBoardId (Board hat keine Herkunft, Restore legt es direkt in boards[]).
// Datensicherheit: ZUERST Trash sichern (saveTrash), DANN Loeschung committen (saveBoards) —
// bei Quota-Reject bleibt das Board in boards[], kein Datenverlust.
pushToTrash({ item: board, type: 'board', originBoardId: null });
await saveTrash();
boards = boards.filter(b => b.id !== board.id);
await saveBoards();
renderBoards();