Preserve content on deletion.

master
Tom Hacohen 4 years ago
parent 3bb4429d16
commit 02c4b264f2

@ -53,7 +53,7 @@ export default function CollectionsMain() {
async function onDelete(collection: Etebase.Collection) { async function onDelete(collection: Etebase.Collection) {
const colMgr = getCollectionManager(etebase); const colMgr = getCollectionManager(etebase);
await collection.delete(); await collection.delete(true);
await dispatch(collectionUpload(colMgr, collection)); await dispatch(collectionUpload(colMgr, collection));
history.push(routeResolver.getRoute("collections")); history.push(routeResolver.getRoute("collections"));

@ -114,7 +114,7 @@ export async function itemDelete(etebase: Etebase.Account, collection: Etebase.C
const meta = await eteItem.getMeta(); const meta = await eteItem.getMeta();
meta.mtime = mtime; meta.mtime = mtime;
await eteItem.setMeta(meta); await eteItem.setMeta(meta);
await eteItem.delete(); await eteItem.delete(true);
await asyncDispatch(itemBatch(collection, itemMgr, [eteItem])); await asyncDispatch(itemBatch(collection, itemMgr, [eteItem]));
} }

Loading…
Cancel
Save