Fix data export download progress
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
kolaente 2021-09-08 17:33:58 +02:00
parent 033b30d6cd
commit debdc83f1b
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -7,7 +7,9 @@ export default class DataExportService extends AbstractService {
} }
download(password) { download(password) {
const clear = this.setLoading()
return this.getBlobUrl('/user/export/download', 'POST', {password}) return this.getBlobUrl('/user/export/download', 'POST', {password})
.then(url => downloadBlob(url, 'vikunja-export.zip')) .then(url => downloadBlob(url, 'vikunja-export.zip'))
.finally(() => clear())
} }
} }