[bug] fix pronunciation @click behaviour
This commit is contained in:
parent
dfad69fa53
commit
00ce6019b3
|
@ -1,23 +1,23 @@
|
|||
<template>
|
||||
<Twemoji>
|
||||
<span>
|
||||
<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>
|
||||
<span v-else><Spelling :text="part.str"/></span>
|
||||
</span>
|
||||
<small v-if="link">
|
||||
(<nuxt-link :to="'/' + pronoun.canonicalName"><Spelling escape :text="pronoun.canonicalName"/></nuxt-link>)
|
||||
</small>
|
||||
<template v-if="config.pronunciation.enabled && pronounce && pronoun.pronounceable && example.pronounce(pronoun)">
|
||||
<a v-for="(link, name) in pronunciationLinks"
|
||||
<Twemoji>
|
||||
<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>
|
||||
<span v-else><Spelling :text="part.str"/></span>
|
||||
</span>
|
||||
<small v-if="link">
|
||||
(<nuxt-link :to="'/' + pronoun.canonicalName"><Spelling escape :text="pronoun.canonicalName"/></nuxt-link>)
|
||||
</small>
|
||||
</Twemoji>
|
||||
<template v-if="config.pronunciation.enabled && pronunciation && pronoun.pronounceable && example.pronounce(pronoun)">
|
||||
<a v-for="(pLink, name) in pronunciationLinks"
|
||||
class="mr-2"
|
||||
:href="link"
|
||||
@click.prevent="pronounce(link)">
|
||||
:href="pLink"
|
||||
@click.prevent="pronounce(pLink)">
|
||||
<Icon v="volume"/><sub v-if="name">{{name}}</sub>
|
||||
</a>
|
||||
</template>
|
||||
</span>
|
||||
</Twemoji>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
|
Reference in New Issue