Merge pull request #450 from nextcloud/design/export-filename

Add '(responses)' to export file name
This commit is contained in:
Jan C. Borchardt 2020-06-11 15:22:07 +02:00 committed by GitHub
commit 7b63b578f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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()