Skip to content

Commit

Permalink
MappingBrowser: Always show empty sections (#639)
Browse files Browse the repository at this point in the history
Replaces user preference with opinionated default.
  • Loading branch information
stefandesu committed Nov 18, 2021
1 parent 54ff48f commit 8a39d28
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
16 changes: 0 additions & 16 deletions config/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,22 +116,6 @@
"min": 0,
"max": 10000
},
"showEmpty": {
"prefLabel": {
"en": "Show empty sections",
"de": "Leere Abschnitte anzeigen"
},
"definition": {
"en": [
"When turned off, sections with no mappings will be completely hidden."
],
"de": [
"Falls ausgeschaltet werden Abschnitte ohne Mappings komplett ausgeblendet."
]
},
"type": "Boolean",
"default": true
},
"showIdentityWarning": {
"prefLabel": {
"en": "Show warning for mismatch in mapping identity",
Expand Down
4 changes: 0 additions & 4 deletions src/components/MappingBrowser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1405,10 +1405,6 @@ export default {
if (mappings.length == 1 && mappings[0] == null) {
section.loading = true
}
// Hide empty section if necessary
if (section.totalCount == 0 && !this.componentSettings.showEmpty) {
continue
}
if (mappings._url) {
section.url = mappings._url
}
Expand Down

0 comments on commit 8a39d28

Please sign in to comment.