Skip to content

Commit

Permalink
Add invalid mark
Browse files Browse the repository at this point in the history
  • Loading branch information
José Luis Pereira committed Nov 1, 2022
1 parent cf9944f commit f67c2ec
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/modules/otus/components/TaxaInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
</h2>
<h1 class="text-xl dark:text-gray-100">
<span v-html="taxonNameString" />
<span
class="ml-2"
:class="statusStyle"
v-html="status"
/>
</h1>
<h2 class="text-1xl">
<CommonNames :otu-id="props.otuId" />
Expand All @@ -28,6 +33,17 @@ const props = defineProps({
}
})
const status = computed(() =>
props.taxon.cached_is_valid
? ''
: '&#10005;'
)
const statusStyle = computed(() =>
props.taxon.cached_is_valid
? ''
: 'text-red-600'
)
const isValid = computed(() => props.taxon.id === props.taxon.cached_valid_taxon_name_id)
const taxonNameString = computed(() =>
Expand Down

0 comments on commit f67c2ec

Please sign in to comment.