1
0
Fork 0
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:
HarveyKandola 2018-07-29 10:59:24 -04:00
parent cf0b06923d
commit def01b6265
8 changed files with 74 additions and 13 deletions

View file

@ -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');