-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jlpereira
committed
Jun 7, 2023
1 parent
cbf7ff7
commit 146605d
Showing
4 changed files
with
18 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,47 +1,32 @@ | ||
| <template> | ||
| <div :class="{ invisible: !taxon.id }"> | ||
| <div> | ||
| <h2 class="text-1xl capitalize"> | ||
| {{ taxon.rank || 'Combination' }} | ||
| {{ store.taxon.rank || 'Combination' }} | ||
| </h2> | ||
| <h1 class="text-xl dark:text-gray-100"> | ||
| <span> | ||
| <span | ||
| :title="taxon.short_status" | ||
| v-html="taxon.full_name_tag" | ||
| :title="store.taxon.short_status" | ||
| v-html="store.taxon.full_name_tag" | ||
| /> | ||
| <span | ||
| v-if="!taxon.is_valid" | ||
| class="ml-1" | ||
| :class="statusStyle" | ||
| v-if="!store.taxon.is_valid" | ||
| class="ml-1 text-red-600" | ||
| title="Invalid" | ||
| v-html="status" | ||
| /> | ||
| > | ||
| ✕ | ||
| </span> | ||
| </span> | ||
| </h1> | ||
| <h2 class="text-1xl"> | ||
| <CommonNames :otu-id="props.otuId" /> | ||
| <CommonNames /> | ||
| </h2> | ||
| </div> | ||
| </template> | ||
|
|
||
| <script setup> | ||
| import { computed } from 'vue' | ||
| import { useOtuStore } from '../store/store' | ||
| import CommonNames from './CommonNames.vue' | ||
| const props = defineProps({ | ||
| taxon: { | ||
| type: Object, | ||
| default: () => ({}) | ||
| }, | ||
| otuId: { | ||
| type: Number, | ||
| default: undefined | ||
| } | ||
| }) | ||
| const status = computed(() => (props.taxon.cached_is_valid ? '' : '✕')) | ||
| const statusStyle = computed(() => | ||
| props.taxon.cached_is_valid ? '' : 'text-red-600' | ||
| ) | ||
| const store = useOtuStore() | ||
| </script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters