File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
clients/vue/src/components Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments