Closed michael closed 8 years ago
I added links in the dashboard. Now over to @Integral for the server side bits.
There already is a deleteDocument endpoint in DocumentEngine. However, that only deletes the document record, not the changes.
@michael we can't call DocumentEngine.getChanges after document was deleted because it's guarded by documentExists. But we could call documentEngine.changeStore.getChanges, not sure that it's a good idea, however what's the difference, it's only a test... what do you think?
Ok. It's almost done. You should only do something here https://github.com/substance/notes/blob/b5223a2b25e7a554b82daf1ae8482cb5db882209/client/Notes.js#L285 to update dashboard list.
Implemented.
We could offer this in dashboard, but only for docs that you created yourself.