Skip to content
Snippets Groups Projects
Commit bab402cb authored by Klaus-Dieter Quibeldey-Cirkel's avatar Klaus-Dieter Quibeldey-Cirkel
Browse files

Merge branch '177-name-export-file-according-to-session-name' into 'master'

Add session name and shortId to filename of comment export

Closes #177

See merge request arsnova/frag.jetzt!164
parents a6abbcf0 465e7072
Branches
Tags
No related merge requests found
......@@ -129,7 +129,7 @@ export class CommentSettingsComponent implements OnInit {
csv = keyFields + valueFields;
const myBlob = new Blob([csv], { type: 'text/csv' });
const link = document.createElement('a');
const fileName = 'comments_' + date + '.csv';
const fileName = this.editRoom.name + '_' + this.editRoom.shortId + '_' + date + '.csv';
link.setAttribute('download', fileName);
link.href = window.URL.createObjectURL(myBlob);
link.click();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment