mirror of
https://github.com/documize/community.git
synced 2025-07-22 22:59:43 +02:00
Export single or multiple documents
This commit is contained in:
parent
cf0b06923d
commit
def01b6265
8 changed files with 74 additions and 13 deletions
|
@ -81,6 +81,16 @@ export default Component.extend(TooltipMixin, {
|
|||
return true;
|
||||
},
|
||||
|
||||
onExport() {
|
||||
let list = this.get('selectedDocuments');
|
||||
this.set('selectedDocuments', A([]));
|
||||
|
||||
let cb = this.get('onExportDocument');
|
||||
cb(list);
|
||||
|
||||
return true;
|
||||
},
|
||||
|
||||
selectDocument(documentId) {
|
||||
let doc = this.get('documents').findBy('id', documentId);
|
||||
let list = this.get('selectedDocuments');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue