Fix data export download progress

This commit is contained in:
kolaente 2021-09-08 17:33:58 +02:00
parent 033b30d6cd
commit debdc83f1b
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 0 deletions

View File

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