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:
@ -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 }
|
||||
);
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user