Skip to content

Commit

Permalink
Merge pull request #900 from alpheios-project/html-sentence-select
Browse files Browse the repository at this point in the history
fix html sentence select visibility
  • Loading branch information
irina060981 authored Nov 8, 2023
2 parents 10717b4 + 10888a6 commit d13f41c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/_output/_dist/html-temp-final.html

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/_output/vue/select-views.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
class="alpheios-alignment-select alpheios-alignment-select__sentence-count"
v-model="state.sentenceCount" id="alpheios-alignment-select__sentence-count"
@change="changeViewType"
v-show="showSentenceChoice"
>
<option v-for="item in state.sentenceChoice" :key="item.value" :value = "item.value">{{ item.label }}</option>
</select>
Expand Down Expand Up @@ -63,6 +64,10 @@ onMounted(async () => {
itemRefs[0].click()
})
const showSentenceChoice = computed(() => {
return state.viewType === 'viewSentence'
})
const itemIdWithValue = (value) => {
return `alpheios-alignment-radio-block__${value.toLowerCase().replace(' ', '_')}`
}
Expand Down

0 comments on commit d13f41c

Please sign in to comment.