use res.download to download flyer

This commit is contained in:
lesion
2022-09-05 13:03:35 +02:00
parent e8ed2ec4b0
commit 81c2bd3dd1
3 changed files with 8 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ v-container#event.pa-0.pa-sm-2
:href='`/api/event/${event.slug || event.id}.ics`')
v-icon(v-text='mdiCalendarExport')
v-btn.ml-2(v-if='hasMedia' large icon :title="$t('event.download_flyer')" color='primary' :aria-label="$t('event.download_flyer')"
:href='event | mediaURL')
:href='event | mediaURL("download")')
v-icon(v-text='mdiFileDownloadOutline')
.p-description.text-body-1.pa-3.rounded(v-if='hasMedia && event.description' itemprop='description' v-html='event.description')
@@ -331,4 +331,4 @@ export default {
}
}
}
</script>
</script>