mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
* fix strings on login and register pages * back to older styles for placeholder * scope->scoped * remove old css
53 lines
1.1 KiB
Vue
53 lines
1.1 KiB
Vue
<template lang="pug">
|
|
b-modal#drops-enabled(:title="$t('dropsEnabled')", size='lg', :hide-footer="true")
|
|
.modal-body
|
|
.col-6.offset-3.text-center
|
|
p
|
|
.item-drop-icon(class='Pet_Egg_Wolf')
|
|
span(v-html='firstDropText')
|
|
p
|
|
.item-drop-icon(class='Pet_Currency_Gem')
|
|
span(v-html="$t('useGems')")
|
|
.modal-footer
|
|
.col-12.text-center
|
|
button.btn.btn-primary(@click='close()') {{ $t('close') }}
|
|
</template>
|
|
|
|
<style scoped>
|
|
.item-drop-icon {
|
|
margin: 0 auto;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
import bModal from 'bootstrap-vue/lib/components/modal';
|
|
|
|
import { mapState } from 'client/libs/store';
|
|
import eggs from '../../../common/script/content/eggs';
|
|
|
|
export default {
|
|
components: {
|
|
bModal,
|
|
},
|
|
data () {
|
|
return {
|
|
eggs,
|
|
};
|
|
},
|
|
computed: {
|
|
...mapState({user: 'user.data'}),
|
|
firstDropText () {
|
|
return this.$t('firstDrop', {
|
|
eggText: this.eggs.all.Wolf.text(),
|
|
eggNotes: this.eggs.all.Wolf.notes(),
|
|
});
|
|
},
|
|
},
|
|
methods: {
|
|
close () {
|
|
this.$root.$emit('hide::modal', 'drops-enabled');
|
|
},
|
|
},
|
|
};
|
|
</script>
|