Skip to content

Commit

Permalink
Merge pull request #1630 from ChildMindInstitute/bugfix/1262_prod
Browse files Browse the repository at this point in the history
1262
  • Loading branch information
devbtech authored Jun 14, 2022
2 parents 24343f5 + a31bad0 commit 80be298
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mindlogger-admin",
"version": "0.17.0",
"version": "0.17.1",
"private": true,
"scripts": {
"serve": "vue-cli-service serve --mode local",
Expand Down
10 changes: 6 additions & 4 deletions src/Components/Utils/mixins/AppletMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ export const AppletMixin = {
}
}

this.downloadFile({
await this.downloadFile({
name: 'report.csv',
content: new ObjectToCSV({
keys: keys.concat(subScaleNames).map((value) => ({ key: value, as: value })),
Expand All @@ -546,7 +546,7 @@ export const AppletMixin = {
type: 'text/csv;charset=utf-8'
});

this.downloadFile({
await this.downloadFile({
name: 'activity_user_journey.csv',
content: new ObjectToCSV({
keys: [
Expand Down Expand Up @@ -803,8 +803,10 @@ export const AppletMixin = {
downloadFile({ name, content, type }) {
const file = new Blob([content], { type })
return new Promise(resolve => {
saveAs(file, name)
resolve(true)
saveAs(file, name);
setTimeout(() => {
resolve(true)
})
})
},

Expand Down

0 comments on commit 80be298

Please sign in to comment.