feat: Update agent report filename to use generated date (#2934)
This commit is contained in:
@@ -116,7 +116,8 @@ export default {
|
||||
},
|
||||
downloadAgentReports() {
|
||||
const { from, to } = this;
|
||||
this.$store.dispatch('downloadAgentReports', { from, to });
|
||||
const fileName = `agent-report-${format(fromUnixTime(to), 'dd-MM-yyyy')}.csv`;
|
||||
this.$store.dispatch('downloadAgentReports', { from, to, fileName });
|
||||
},
|
||||
changeSelection(index) {
|
||||
this.currentSelection = index;
|
||||
|
||||
Reference in New Issue
Block a user