|
|
@ -54,6 +54,9 @@ export default function CollectionsMain() {
|
|
|
|
|
|
|
|
|
|
|
|
async function onDelete(collection: Etebase.Collection) {
|
|
|
|
async function onDelete(collection: Etebase.Collection) {
|
|
|
|
const colMgr = getCollectionManager(etebase);
|
|
|
|
const colMgr = getCollectionManager(etebase);
|
|
|
|
|
|
|
|
const mtime = (new Date()).getTime();
|
|
|
|
|
|
|
|
const meta = await collection.getMeta();
|
|
|
|
|
|
|
|
await collection.setMeta({ ...meta, mtime });
|
|
|
|
await collection.delete(true);
|
|
|
|
await collection.delete(true);
|
|
|
|
await dispatch(collectionUpload(colMgr, collection));
|
|
|
|
await dispatch(collectionUpload(colMgr, collection));
|
|
|
|
|
|
|
|
|
|
|
|