Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated yaml.safeDump and List.vue sortable table #37

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/views/ImportExport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export default {

if (errors.length) {
this.$toasted.error(`${errors.length} items had errors.`)
saveAs(new Blob([yaml.safeDump(errors)], { type: 'text/plain;charset=utf-8' }), 'importErrors.yml')
saveAs(new Blob([yaml.dump(errors)], { type: 'text/plain;charset=utf-8' }), 'importErrors.yml')
}
}).catch((error) => {
this.$toasted.error(`Error ${error}`)
Expand Down Expand Up @@ -227,7 +227,7 @@ export default {
this.progressModalText = 'Generating YML extract...'
// Get data
DatabaseService().getAllItems().then((data) => {
saveAs(new Blob([yaml.safeDump(data.rows)], { type: 'text/plain;charset=utf-8' }), `${this.exportFileName}.yml`)
saveAs(new Blob([yaml.dump(data.rows)], { type: 'text/plain;charset=utf-8' }), `${this.exportFileName}.yml`)
this.progressModalText = ''
})
},
Expand Down
2 changes: 1 addition & 1 deletion src/views/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default {
value: item.name,
align: 'left',
item: item, // So you can access all the parameters. Above are given in the data table support format.
sortable: false
sortable: true
})
})
})
Expand Down