Skip to content

Commit

Permalink
Show proper prefLabel for mapping types (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Jun 7, 2019
1 parent 0875edc commit fb45240
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/components/MappingBrowserTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
slot-scope="{ value }">
<span
v-if="value != null && $util.notation(value) != ''"
v-b-tooltip.hover="{ title: value.prefLabel.en, delay: $util.delay.medium }">
v-b-tooltip.hover="{ title: $util.prefLabel(value, null, false), delay: $util.delay.medium }">
{{ $util.notation(value) }}
</span>
</span>
Expand Down Expand Up @@ -403,8 +403,8 @@ export default {
minWidth: "",
sortable: false,
compare: (a ,b) => {
let labelA = _.get(a, "type.prefLabel.en", "")
let labelB = _.get(b, "type.prefLabel.en", "")
let labelA = this.$util.prefLabel(_.get(a, "type"), null, false)
let labelB = this.$util.prefLabel(_.get(b, "type"), null, false)
if (labelA < labelB) {
return -1
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/MappingTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ export default {
minWidth: "",
sortable: false,
compare: (a ,b) => {
let labelA = _.get(a, "type.prefLabel.en", "")
let labelB = _.get(b, "type.prefLabel.en", "")
let labelA = this.$util.prefLabel(_.get(a, "type"), null, false)
let labelB = this.$util.prefLabel(_.get(b, "type"), null, false)
if (labelA < labelB) {
return -1
}
Expand Down

0 comments on commit fb45240

Please sign in to comment.