🐛 Fix download button (#172)

* Fix on context menu for folder

* Make it works for My Drive

* Fix downloading folder in the shared view

---------

Co-authored-by: Anton SHEPILOV <ashepilov@linagora.com>
This commit is contained in:
Greemty
2023-08-30 15:10:54 +02:00
committed by GitHub
parent 74df7e1f71
commit 1eb0df97f1
11 changed files with 5680 additions and 6842 deletions
@@ -130,11 +130,10 @@ export class DriveApiClient {
}
static async getDownloadZipUrl(companyId: string, ids: string[]) {
const { token } = await DriveApiClient.getDownloadToken(companyId, ids);
// const { token } = await DriveApiClient.getDownloadToken(companyId, ids);
return Api.route(
`/internal/services/documents/v1/companies/${companyId}/item/download/zip` +
`?items=${ids.join(',')}&token=${token}` +
appendTdriveToken(true),
`?items=${ids.join(',')}`
);
}