enable translated pet names in hatching success message (#10231)

This commit is contained in:
Alys
2018-04-08 22:50:36 +10:00
committed by Matteo Pagliazzi
parent e7c78eabce
commit e111ac730c
2 changed files with 2 additions and 2 deletions

View File

@@ -351,7 +351,7 @@ export default {
}, },
hatchPet (potion, egg) { hatchPet (potion, egg) {
this.$store.dispatch('common:hatch', {egg: egg.key, hatchingPotion: potion.key}); this.$store.dispatch('common:hatch', {egg: egg.key, hatchingPotion: potion.key});
this.text(this.$t('hatchedPet', {egg: egg.key, potion: potion.key})); this.text(this.$t('hatchedPet', {egg: egg.text, potion: potion.text}));
if (this.user.preferences.suppressModals.hatchPet) return; if (this.user.preferences.suppressModals.hatchPet) return;
const newPet = createAnimal(egg, potion, 'pet', this.content, this.user.items); const newPet = createAnimal(egg, potion, 'pet', this.content, this.user.items);
this.$root.$emit('hatchedPet::open', newPet); this.$root.$emit('hatchedPet::open', newPet);

View File

@@ -875,7 +875,7 @@
this.closeHatchPetDialog(); this.closeHatchPetDialog();
this.$store.dispatch('common:hatch', {egg: pet.eggKey, hatchingPotion: pet.potionKey}); this.$store.dispatch('common:hatch', {egg: pet.eggKey, hatchingPotion: pet.potionKey});
this.text(this.$t('hatchedPet', {egg: pet.eggKey, potion: pet.potionKey})); this.text(this.$t('hatchedPet', {egg: pet.eggName, potion: pet.potionName}));
}, },
onDragStart (ev, food) { onDragStart (ev, food) {
this.currentDraggingFood = food; this.currentDraggingFood = food;