mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
47 lines
1.0 KiB
Vue
47 lines
1.0 KiB
Vue
<template lang="pug">
|
|
b-modal#lost-masterclasser(:title='title', size='md', :hide-footer='true')
|
|
.modal-body
|
|
.col-12
|
|
achievement-avatar.avatar
|
|
.col-6.offset-3.text-center
|
|
p {{ $t('achievementLostMasterclasserModalText') }}
|
|
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 '@/libs/store';
|
|
|
|
export default {
|
|
components: {
|
|
achievementFooter,
|
|
achievementAvatar,
|
|
},
|
|
computed: {
|
|
...mapState({ user: 'user.data' }),
|
|
},
|
|
data () {
|
|
return {
|
|
title: `${this.$t('modalAchievement')} ${this.$t('achievementLostMasterclasser')}`,
|
|
};
|
|
},
|
|
methods: {
|
|
close () {
|
|
this.$root.$emit('bv::hide::modal', 'lost-masterclasser');
|
|
},
|
|
},
|
|
};
|
|
</script>
|