v2.3 Papierkorb: Board-Loeschen in den Papierkorb umleiten (Confirm bleibt)
This commit is contained in:
@@ -151,6 +151,12 @@ function createBoardEl(board) {
|
|||||||
{ type: 'danger', title: t('boards.delete_confirm.title'), confirmText: t('boards.delete') }
|
{ type: 'danger', title: t('boards.delete_confirm.title'), confirmText: t('boards.delete') }
|
||||||
);
|
);
|
||||||
if (ok) {
|
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);
|
boards = boards.filter(b => b.id !== board.id);
|
||||||
await saveBoards();
|
await saveBoards();
|
||||||
renderBoards();
|
renderBoards();
|
||||||
|
|||||||
Reference in New Issue
Block a user