Skip to content

Commit

Permalink
Negative assessment comment: Add disabled item for email note (#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Jun 2, 2023
1 parent 3cb701e commit 6e52a4e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions config/locale.json
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@
"addConfirmation": "Confirm",
"removeConfirmation": "Remove Confirmation",
"mailFeedbackTooltip": "Provide feedback about this mapping via email ({0})",
"mailFeedbackListItem": "please add details via email (if needed)",
"reason": "Reason"
},
"languages": {
Expand Down Expand Up @@ -761,6 +762,7 @@
"addConfirmation": "Bestätigen",
"removeConfirmation": "Bestätigung entfernen",
"mailFeedbackTooltip": "Feedback über dieses Mapping per E-Mail senden ({0})",
"mailFeedbackListItem": "Details ggf. bitte per E-Mail",
"reason": "Grund"
},
"languages": {
Expand Down
7 changes: 5 additions & 2 deletions src/components/AnnotationList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
v-for="option in mismatchTagOptions"
:key="option.value"
:title="option.definition"
:value="option.value">{{ option.text }}</option>
:value="option.value"
:disabled="option.disabled">{{ option.text }}</option>
</select>
</span>
<span v-else-if="mismatchTagFor(annotation)">
Expand Down Expand Up @@ -84,7 +85,9 @@ export default {
return getItem(this.provider?._config?.annotations?.mismatchTagVocabulary)?.topConcepts ?? []
},
mismatchTagOptions() {
return [{ value: null, text: "-" }].concat(this.mismatchTagConcepts.map(concept => ({ value: concept.uri, text: this.mismatchTagLabel(concept), definition: this.mismatchTagDefinition(concept) })))
return [{ value: null, text: "-" }]
.concat(this.mismatchTagConcepts.map(concept => ({ value: concept.uri, text: this.mismatchTagLabel(concept), definition: this.mismatchTagDefinition(concept) })))
.concat({ value: null, text: this.$t("annotationPopover.mailFeedbackListItem"), disabled: true })
},
},
methods: {
Expand Down

0 comments on commit 6e52a4e

Please sign in to comment.