[bug] fix pronunciation @click behaviour

This commit is contained in:
Avris 2021-11-17 09:54:26 +01:00
parent dfad69fa53
commit 00ce6019b3
1 changed files with 13 additions and 13 deletions

View File

@ -1,23 +1,23 @@
<template> <template>
<Twemoji>
<span> <span>
<span v-for="part in example[(example.isHonorific ? pronoun.isPluralHonorific(counter) : pronoun.isPlural(counter)) ? 'pluralParts' : 'singularParts']"> <Twemoji>
<strong v-if="part.variable"><Spelling escape :text="pronoun.getMorpheme(part.str, counter)"/></strong> <span v-for="part in example[(example.isHonorific ? pronoun.isPluralHonorific(counter) : pronoun.isPlural(counter)) ? 'pluralParts' : 'singularParts']">
<span v-else><Spelling :text="part.str"/></span> <strong v-if="part.variable"><Spelling escape :text="pronoun.getMorpheme(part.str, counter)"/></strong>
</span> <span v-else><Spelling :text="part.str"/></span>
<small v-if="link"> </span>
(<nuxt-link :to="'/' + pronoun.canonicalName"><Spelling escape :text="pronoun.canonicalName"/></nuxt-link>) <small v-if="link">
</small> (<nuxt-link :to="'/' + pronoun.canonicalName"><Spelling escape :text="pronoun.canonicalName"/></nuxt-link>)
<template v-if="config.pronunciation.enabled && pronounce && pronoun.pronounceable && example.pronounce(pronoun)"> </small>
<a v-for="(link, name) in pronunciationLinks" </Twemoji>
<template v-if="config.pronunciation.enabled && pronunciation && pronoun.pronounceable && example.pronounce(pronoun)">
<a v-for="(pLink, name) in pronunciationLinks"
class="mr-2" class="mr-2"
:href="link" :href="pLink"
@click.prevent="pronounce(link)"> @click.prevent="pronounce(pLink)">
<Icon v="volume"/><sub v-if="name">{{name}}</sub> <Icon v="volume"/><sub v-if="name">{{name}}</sub>
</a> </a>
</template> </template>
</span> </span>
</Twemoji>
</template> </template>
<script> <script>