Skip to content

Commit

Permalink
MappingEditor: Always show scheme names (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed May 3, 2019
1 parent 8362237 commit b9d8b2b
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions src/components/MappingEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,12 @@
<!-- Show scheme only if different scheme is selected on that side -->
<div
class="mappingScheme fontWeight-heavy">
<span v-if="showScheme(isLeft)">
<item-name
:item="$store.getters['mapping/getScheme'](isLeft)"
:is-link="true"
:is-left="isLeft"
:show-text="false"
:show-tooltip="true" />
</span>
<span v-else>&nbsp;</span>
<item-name
:item="$store.getters['mapping/getScheme'](isLeft)"
:is-link="true"
:is-left="isLeft"
:show-text="false"
:show-tooltip="true" />
</div>
<!-- All concepts in mapping -->
<div class="mappingConceptList">
Expand Down Expand Up @@ -564,14 +561,6 @@ export default {
isLeft
})
},
/**
* Returns whether to show the scheme's label for a specific side
*/
showScheme(isLeft) {
let chosenScheme = this.selected.scheme[isLeft]
let mappingScheme = this.$store.getters["mapping/getScheme"](isLeft)
return !this.$jskos.compare(chosenScheme, mappingScheme)
},
droppedConcept(concept, isLeft) {
if (this.$jskos.isConcept(concept)) {
// Add concept to mapping
Expand Down

0 comments on commit b9d8b2b

Please sign in to comment.