diff --git a/src/views/Report.vue b/src/views/Report.vue index b0b7b734..440339f6 100644 --- a/src/views/Report.vue +++ b/src/views/Report.vue @@ -175,9 +175,11 @@ export default { export_csv() { const data = this.events.map(e => { - return [e.timestamp, e.duration, e.data['$category']]; + return [e.timestamp, e.duration, e.data['$category'], e.data['app'], e.data['title']]; + }); + const csv = Papa.unparse(data, { + columns: ['timestamp', 'duration', 'category', 'app', 'title'], }); - const csv = Papa.unparse(data, { columns: ['timestamp', 'duration', 'category'] }); const blob = new Blob([csv], { type: 'text/csv' }); const url = URL.createObjectURL(blob); const link = document.createElement('a');