[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,6 +1,6 @@
<template> <template>
<Twemoji>
<span> <span>
<Twemoji>
<span v-for="part in example[(example.isHonorific ? pronoun.isPluralHonorific(counter) : pronoun.isPlural(counter)) ? 'pluralParts' : 'singularParts']"> <span v-for="part in example[(example.isHonorific ? pronoun.isPluralHonorific(counter) : pronoun.isPlural(counter)) ? 'pluralParts' : 'singularParts']">
<strong v-if="part.variable"><Spelling escape :text="pronoun.getMorpheme(part.str, counter)"/></strong> <strong v-if="part.variable"><Spelling escape :text="pronoun.getMorpheme(part.str, counter)"/></strong>
<span v-else><Spelling :text="part.str"/></span> <span v-else><Spelling :text="part.str"/></span>
@ -8,16 +8,16 @@
<small v-if="link"> <small v-if="link">
(<nuxt-link :to="'/' + pronoun.canonicalName"><Spelling escape :text="pronoun.canonicalName"/></nuxt-link>) (<nuxt-link :to="'/' + pronoun.canonicalName"><Spelling escape :text="pronoun.canonicalName"/></nuxt-link>)
</small> </small>
<template v-if="config.pronunciation.enabled && pronounce && pronoun.pronounceable && example.pronounce(pronoun)"> </Twemoji>
<a v-for="(link, name) in pronunciationLinks" <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>