feat: Export collection as direct download instead of emailing (#1001)

* feat: Export collection as zip instead of emailing

* Flow typing download.js
This commit is contained in:
Tom Moor
2019-07-29 22:35:34 -07:00
committed by GitHub
parent c9b86ec2e7
commit 92a18159b5
8 changed files with 192 additions and 17 deletions

View File

@ -128,6 +128,10 @@ export default class Collection extends BaseModel {
};
export = () => {
return client.post('/collections.export', { id: this.id });
return client.get(
'/collections.export',
{ id: this.id },
{ download: true }
);
};
}