Skip to content

Commit

Permalink
CU-8695xcr4k: fix styling of meta-annos for both model pack pred scen…
Browse files Browse the repository at this point in the history
…ario and defaulting scenario of standard cdb / vocab project.
  • Loading branch information
tomolopolis committed Oct 3, 2024
1 parent 503c674 commit e452d64
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 e452d64

Please sign in to comment.