Skip to content

Commit

Permalink
Add conceptTreeAddToMappingSelectsConcept option (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Mar 19, 2019
1 parent c2deeec commit 2569c61
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
6 changes: 4 additions & 2 deletions config/locale.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@
"loginUriHint": "The URI is assigned automatically after logging in.",
"privacyPolicy": "Privacy Policy",
"sources": "Sources",
"localMappingsInfo": "Local mappings are only stored in your current browser. They are not visible to other users, but they will get lost if you purge your browser's local storage."
"localMappingsInfo": "Local mappings are only stored in your current browser. They are not visible to other users, but they will get lost if you purge your browser's local storage.",
"conceptTreeAddToMappingSelectsConcept": "Concept Tree: Adding a concept to the mapping will also select that concept."
},
"alerts": {
"mappingDeleted": "Mapping was deleted.",
Expand Down Expand Up @@ -352,7 +353,8 @@
"loginUriHint": "Die URI wird nach dem Login automatisch zugewiesen.",
"privacyPolicy": "Datenschutz",
"sources": "Quellcode",
"localMappingsInfo": "Lokale Mappings werden in dem aktuellen Browser gespeichert. Sie sind nicht für andere Nutzer sichtbar, gehen jedoch verloren, wenn man den lokalen Speicher des Browsers leert."
"localMappingsInfo": "Lokale Mappings werden in dem aktuellen Browser gespeichert. Sie sind nicht für andere Nutzer sichtbar, gehen jedoch verloren, wenn man den lokalen Speicher des Browsers leert.",
"conceptTreeAddToMappingSelectsConcept": "Concept-Tree: Durch Hinzufügen eines Konzepts zum Mapping wird dieses auch ausgewählt."
},
"conceptDetail": {
"showAllAncestors": "zeige alle übergeordneten Konzepte",
Expand Down
2 changes: 1 addition & 1 deletion src/components/ConceptTreeItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export default {
* Clicked the plus icon to add a concept.
*/
addConcept() {
if (!this.isSelected) {
if (!this.isSelected && this.$settings.conceptTreeAddToMappingSelectsConcept) {
this.select(this.concept)
}
this.addToMapping({
Expand Down
5 changes: 5 additions & 0 deletions src/components/TheSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@
{{ $t("settings.autoInsertLabels") }}
</b-form-checkbox>
</p>
<p v-if="localSettings">
<b-form-checkbox v-model="localSettings.conceptTreeAddToMappingSelectsConcept">
{{ $t("settings.conceptTreeAddToMappingSelectsConcept") }}
</b-form-checkbox>
</p>
<p>
<b-button
variant="primary"
Expand Down
1 change: 1 addition & 0 deletions src/store/modules/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const defaultSettings = {
mappingBrowserShowReverse: true,
conceptDetailShowAllAncestors: false,
conceptDetailDoNotTruncateNotes: false,
conceptTreeAddToMappingSelectsConcept: true,
mappingBrowserLocal: true,
mappingBrowserProvider: {},
mappingBrowserCatalog: true,
Expand Down

0 comments on commit 2569c61

Please sign in to comment.