Files
habitica/website/client/components/inventory/stable/hatchedPetDialog.vue
Alys f38e184434 new client: move translatable strings to appropriate locales files (#8992)
* move translatable strings from newClient.json to appropriate locales files

* whitespace changes

* whitespace changes
2017-08-26 18:53:10 +02:00

96 lines
1.8 KiB
Vue

<template lang="pug">
b-modal#hatchedPet-modal(
:visible="true",
v-if="pet != null",
:hide-header="true"
)
div.content
div.dialog-header.title You hatched a new pet!
div.inner-content
div.pet-background
div(:class="pet.class")
h4.title {{ pet.name }}
div.text(v-if="!hideText")
| Visit the
|
router-link(:to="{name: 'stable'}") {{ $t('stable') }}
|
| to feed and equip your newest pet!
// @TODO make translatable with the entire sentence in one string (translators can't do sentences in multiple parts)
button.btn.btn-primary(@click="close()") {{ $t('onward') }}
div.clearfix(slot="modal-footer")
</template>
<style lang="scss">
@import '~client/assets/scss/colors.scss';
@import '~client/assets/scss/modal.scss';
#hatchedPet-modal {
@include centeredModal();
.modal-dialog {
width: 330px;
}
.content {
text-align: center;
}
.inner-content {
margin: 33px auto auto;
display: flex;
flex-direction: column;
align-items: center;
}
.pet-background {
width: 112px;
height: 112px;
border-radius: 4px;
background-color: $gray-700;
}
.Pet {
margin: auto;
}
.dialog-header {
color: $purple-200;
}
}
</style>
<script>
import bModal from 'bootstrap-vue/lib/components/modal';
export default {
components: {
bModal,
},
methods: {
close () {
this.$emit('closed', this.item);
this.$root.$emit('hide::modal', 'hatchedPet-modal');
},
},
props: {
pet: {
type: Object,
},
hideText: {
type: Boolean,
},
},
};
</script>