mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
47 lines
1.0 KiB
Vue
47 lines
1.0 KiB
Vue
<template lang="pug">
|
|
b-modal#just-add-water(:title='title', size='md', :hide-footer='true')
|
|
.modal-body
|
|
.col-12
|
|
achievement-avatar.avatar
|
|
.col-6.offset-3.text-center
|
|
p {{ $t('achievementJustAddWaterModalText') }}
|
|
button.btn.btn-primary(@click='close()') {{ $t('huzzah') }}
|
|
achievement-footer
|
|
</template>
|
|
|
|
<style scoped>
|
|
.avatar {
|
|
width: 140px;
|
|
margin: 0 auto;
|
|
margin-bottom: 1.5em;
|
|
margin-top: 1.5em;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
import achievementFooter from './achievementFooter';
|
|
import achievementAvatar from './achievementAvatar';
|
|
|
|
import {mapState} from 'client/libs/store';
|
|
|
|
export default {
|
|
components: {
|
|
achievementFooter,
|
|
achievementAvatar,
|
|
},
|
|
computed: {
|
|
...mapState({user: 'user.data'}),
|
|
},
|
|
data () {
|
|
return {
|
|
title: `${this.$t('modalAchievement')} ${this.$t('achievementJustAddWater')}`,
|
|
};
|
|
},
|
|
methods: {
|
|
close () {
|
|
this.$root.$emit('bv::hide::modal', 'just-add-water');
|
|
},
|
|
},
|
|
};
|
|
</script>
|