Fix data export download progress

This commit is contained in:
kolaente 2021-09-08 17:33:58 +02:00
parent 033b30d6cd
commit debdc83f1b
No known key found for this signature in database
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())
} }
} }