Skip to content

Commit 167ffe0

Browse files
added timestamp to file name
1 parent 2c0c016 commit 167ffe0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clients/vue/src/components/ShowEditGroup.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ export default class ShowEditGroup extends Vue {
229229
try {
230230
this.loading = true;
231231
const apiResult = (await api.choreExportGroupGroupIdGet(Number(this.group.id))).data;
232-
this.downloadToFile("export-chores.csv", apiResult);
232+
const name = "export-chores-"+(new Date().toISOString())+".csv";
233+
this.downloadToFile(name, apiResult);
233234
} catch (e) {
234235
this.$toast.error(`Export failed`);
235236
}
@@ -254,7 +255,8 @@ export default class ShowEditGroup extends Vue {
254255
try {
255256
this.loading = true;
256257
const apiResult = (await api.financeExportGroupGroupIdGet(Number(this.group.id))).data;
257-
this.downloadToFile("export-finance.csv", apiResult);
258+
const name = "export-finance-"+(new Date().toISOString())+".csv";
259+
this.downloadToFile(name, apiResult);
258260
} catch (e) {
259261
this.$toast.error(`Export failed`);
260262
}

0 commit comments

Comments
 (0)