From 6ff02b41c827f44c531b780911598073755b6a88 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Wed, 14 Oct 2020 12:03:35 +0200 Subject: [PATCH] name of downloaded image is the same as the url in the exported json --- webapp/pages/settings/data-download.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/pages/settings/data-download.vue b/webapp/pages/settings/data-download.vue index 2182378d8..f2fcb0f5a 100644 --- a/webapp/pages/settings/data-download.vue +++ b/webapp/pages/settings/data-download.vue @@ -48,12 +48,12 @@ export default { document.body.appendChild(fileLink) fileLink.click() }, - downloadImage({ url, title }) { + downloadImage({ url }) { this.$axios.get(url, { responseType: 'blob' }).then((response) => { const blob = new Blob([response.data], { type: 'application/pdf' }) const link = document.createElement('a') link.href = URL.createObjectURL(blob) - link.download = title + link.download = url link.click() URL.revokeObjectURL(link.href) })