fix chooser desc

This commit is contained in:
Giulio 2021-04-24 15:10:07 +02:00
parent 01e2ad7bd8
commit 84c9c5516e

View File

@ -46,8 +46,11 @@ export default {
}, },
methods: { methods: {
showDesc(card) { showDesc(card) {
//console.log(card)
if (card.desc) if (card.desc)
this.desc = (this.$i18n.locale=='it'?card.desc:card.desc_eng) this.desc = (this.$i18n.locale=='it'?card.desc:card.desc_eng)
else if (card.is_character)
this.desc = card.name
else else
this.desc = this.$t(`cards.${card.name}.desc`) this.desc = this.$t(`cards.${card.name}.desc`)
} }