Skip to content

Commit

Permalink
Merge pull request #215 from CogStack/meta-anno-click-event-bug
Browse files Browse the repository at this point in the history
CU-8695xcr4k: fix UI bug of meta-annos
  • Loading branch information
tomolopolis authored Oct 3, 2024
2 parents 503c674 + e452d64 commit 47fa649
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions webapp/frontend/src/components/usecases/MetaAnnotationTask.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,16 @@ export default {
methods: {
selectTaskValue (option) {
this.$emit('select:metaAnno', this.task, option)
this.$forceUpdate()
},
optionStyle (option) {
return {
'selected': this.task.value === option.id && this.task.validated,
'predicted': this.task.predicted_value === option.id
if (this.task.value === option.id &&
(this.task.validated || !this.task.predicted_value)) {
return 'selected'
} else if (this.task.predicted_value === option.id) {
return 'predicted'
}
return ''
}
}
}
Expand Down

0 comments on commit 47fa649

Please sign in to comment.