Skip to content

Commit

Permalink
Settings: Clear trash when deleting all local mappings (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Jun 24, 2019
1 parent 8dcf410 commit 945e4e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/locale.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
"localUploadPlaceholder": "Choose a file...",
"localDeleteTitle": "Delete Local Mappings",
"localDeleteText": "Delete all local mappings",
"localDeleteSure": "This action cannot be undone! Are you sure?",
"localDeleteSure": "This action deletes all local mappings (including all mappings in the trash) and cannot be undone! Are you sure?",
"suggestions1": "For issues and suggestions, please use the",
"suggestions2": "GitHub issue tracker",
"suggestions3": ".",
Expand Down Expand Up @@ -403,7 +403,7 @@
"localUploadPlaceholder": "Datei auswählen...",
"localDeleteTitle": "Lokale Mappings löschen",
"localDeleteText": "Alle lokalen Mappings löschen",
"localDeleteSure": "Diese Aktion kann nicht rückgängig gemacht werden! Fortfahren?",
"localDeleteSure": "Diese Aktion löscht alle lokalen Mappings (inkl. der kürzlich gelöschten Mappings) und kann nicht rückgängig gemacht werden! Fortfahren?",
"suggestions1": "Für Probleme oder Vorschläge, bitte den",
"suggestions2": "GitHub Issue Tracker",
"suggestions3": " benutzen.",
Expand Down
2 changes: 2 additions & 0 deletions src/components/TheSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,8 @@ export default {
this.$store.commit("mapping/setRefresh", { registry: "http://coli-conc.gbv.de/registry/local-mappings" })
this.refreshDownloads()
this.deleteMappingsButtons = false
// Also clear mapping trash
this.$store.commit("mapping/clearTrash")
}).catch(error => {
console.error("TheSettings - Error deleting local mappings", error)
})
Expand Down

0 comments on commit 945e4e3

Please sign in to comment.