Add '(responses)' to export file name

Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
This commit is contained in:
Jan-Christoph Borchardt 2020-06-10 18:16:32 +02:00
parent 0472f3036c
commit cf0889eabd
No known key found for this signature in database
GPG key ID: CBD846FC845CBE17

View file

@ -248,7 +248,7 @@ export default {
const element = document.createElement('a')
element.setAttribute('href', 'data:text/csv;charset=utf-8,' + encodeURIComponent(parser.parse(formattedSubmissions)))
element.setAttribute('download', this.formTitle + '.csv')
element.setAttribute('download', this.formTitle + ' (' + t('forms', 'responses') + ').csv')
element.style.display = 'none'
document.body.appendChild(element)
element.click()