Added 'duplicate' menu option

For now duplicates next to original document in the same collection
This commit is contained in:
Tom Moor
2018-06-05 06:57:26 -07:00
parent 45a2c03030
commit 2d02093f48
3 changed files with 34 additions and 0 deletions

View File

@@ -270,6 +270,10 @@ class Document extends BaseModel {
return false;
};
duplicate = () => {
this.emit('documents.duplicate', this);
};
download() {
const a = window.document.createElement('a');
a.textContent = 'download';